mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
6794582: javadoc should read files using a FileManager
Reviewed-by: darcy, bpatel
This commit is contained in:
parent
19b769a375
commit
981f025a85
13 changed files with 301 additions and 225 deletions
|
@ -25,11 +25,13 @@
|
|||
|
||||
package com.sun.tools.javadoc;
|
||||
|
||||
import com.sun.javadoc.*;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.io.IOException;
|
||||
import java.text.CollationKey;
|
||||
import javax.tools.FileObject;
|
||||
|
||||
import com.sun.javadoc.*;
|
||||
|
||||
import com.sun.tools.javac.util.Position;
|
||||
|
||||
/**
|
||||
|
@ -43,7 +45,7 @@ import com.sun.tools.javac.util.Position;
|
|||
* @author Atul M Dambalkar
|
||||
* @author Neal Gafter (rewrite)
|
||||
*/
|
||||
abstract class DocImpl implements Doc, Comparable<Object> {
|
||||
public abstract class DocImpl implements Doc, Comparable<Object> {
|
||||
|
||||
/**
|
||||
* Doc environment
|
||||
|
@ -163,7 +165,7 @@ abstract class DocImpl implements Doc, Comparable<Object> {
|
|||
/**
|
||||
* Utility for subclasses which read HTML documentation files.
|
||||
*/
|
||||
String readHTMLDocumentation(InputStream input, String filename) throws IOException {
|
||||
String readHTMLDocumentation(InputStream input, FileObject filename) throws IOException {
|
||||
int filesize = input.available();
|
||||
byte[] filecontents = new byte[filesize];
|
||||
input.read(filecontents, 0, filesize);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue