StandardJavaFileManager.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private Path | |
| private final StandardJavaFileManager |
| Access | Constructor and Description |
|---|---|
| public |
| destDir | back to summary |
|---|---|
| private Path destDir | |
| fileManager | back to summary |
|---|---|
| private final StandardJavaFileManager fileManager | |
| StandardDocFileFactory | back to summary |
|---|---|
| public StandardDocFileFactory(BaseConfiguration configuration) | |
| createFileForDirectory | back to summary |
|---|---|
| public DocFile createFileForDirectory(String file) Implements abstract jdk. Doc from jdk. Create a DocFile for a directory.
| |
| createFileForInput | back to summary |
|---|---|
| public DocFile createFileForInput(String file) Implements abstract jdk. Doc from jdk. Create a DocFile for a file that will be opened for reading.
| |
| createFileForInput | back to summary |
|---|---|
| public DocFile createFileForInput(Path file) Implements abstract jdk. Doc from jdk. Create a DocFile for a file that will be opened for reading.
| |
| createFileForOutput | back to summary |
|---|---|
| public DocFile createFileForOutput(DocPath path) Implements abstract jdk. Doc from jdk. Create a DocFile for a file that will be opened for writing.
| |
| getDestDir | back to summary |
|---|---|
| private Path getDestDir() | |
| list | back to summary |
|---|---|
| pack-priv Iterable Implements abstract jdk. Doc from jdk. List the directories and files found in subdirectories along the elements of the given location.
| |
| newFile | back to summary |
|---|---|
| private static Path newFile(Path dir, String path) | |
| setDestDir | back to summary |
|---|---|
| public void setDestDir(String destDirName) throws SimpleDocletException Implements abstract jdk.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Path |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | StandardDocFile(JavaFileManager.
Create a StandardDocFile for a given location and relative path. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canRead()
Implements abstract jdk. Return true if the file can be read. |
| public boolean | canWrite()
Implements abstract jdk. Return true if the file can be written. |
| public boolean | exists()
Implements abstract jdk. Return true if the file exists. |
| public FileObject | getFileObject()
Implements abstract jdk. Returns a file object for the file. |
| private FileObject | |
| private JavaFileObject | |
| public String | getName()
Implements abstract jdk. Return the base name (last component) of the file name. |
| public String | getPath()
Implements abstract jdk. Return the file system path for this file. |
| public boolean | isAbsolute()
Implements abstract jdk. Return true is file has an absolute path name. |
| public boolean | isDirectory()
Implements abstract jdk. Return true is file identifies a directory. |
| public boolean | isFile()
Implements abstract jdk. Return true is file identifies a file. |
| public boolean | isSameFile(DocFile other)
Implements abstract jdk. Return true if this file is the same as another. |
| public Iterable | list()
Implements abstract jdk. If the file is a directory, list its contents. |
| public boolean | mkdirs()
Implements abstract jdk. Create the file as a directory, including any parent directories. |
| public InputStream | openInputStream()
Implements abstract jdk. Open an input stream for the file. |
| public OutputStream | openOutputStream()
Implements abstract jdk. Open an output stream for the file. |
| public Writer | openWriter()
Implements abstract jdk. Open an writer for the file, using the encoding (if any) given in the doclet configuration. |
| public DocFile | resolve(DocPath p)
Implements abstract jdk. Derive a new file by resolving a relative path against this file. |
| public DocFile | resolve(String p)
Implements abstract jdk. Derive a new file by resolving a relative path against this file. |
| public DocFile | resolveAgainst(JavaFileManager.
Currently, only
locnDocumentationTool. is supported.Implements abstract jdk. Resolve a relative file against the given output location. |
| public String | toString()
Overrides java. Return a string to identify the contents of this object, for debugging purposes. |
| file | back to summary |
|---|---|
| private final Path file | |
| StandardDocFile | back to summary |
|---|---|
| pack-priv StandardDocFile(Path file) Create a StandardDocFile for a given file. | |
| StandardDocFile | back to summary |
|---|---|
| pack-priv StandardDocFile(JavaFileManager. Create a StandardDocFile for a given location and relative path. | |
| canRead | back to summary |
|---|---|
| public boolean canRead() Implements abstract jdk. Return true if the file can be read.
| |
| canWrite | back to summary |
|---|---|
| public boolean canWrite() Implements abstract jdk. Return true if the file can be written.
| |
| exists | back to summary |
|---|---|
| public boolean exists() Implements abstract jdk. Return true if the file exists.
| |
| getFileObject | back to summary |
|---|---|
| public FileObject getFileObject() Implements abstract jdk. Doc from jdk. Returns a file object for the file.
| |
| getFileObjectForOutput | back to summary |
|---|---|
| private FileObject getFileObjectForOutput(DocPath path) throws IOException | |
| getJavaFileObjectForInput | back to summary |
|---|---|
| private JavaFileObject getJavaFileObjectForInput(Path file) | |
| getName | back to summary |
|---|---|
| public String getName() Implements abstract jdk. Return the base name (last component) of the file name.
| |
| getPath | back to summary |
|---|---|
| public String getPath() Implements abstract jdk. Return the file system path for this file.
| |
| isAbsolute | back to summary |
|---|---|
| public boolean isAbsolute() Implements abstract jdk. Return true is file has an absolute path name.
| |
| isDirectory | back to summary |
|---|---|
| public boolean isDirectory() Implements abstract jdk. Return true is file identifies a directory.
| |
| isFile | back to summary |
|---|---|
| public boolean isFile() Implements abstract jdk. Return true is file identifies a file.
| |
| isSameFile | back to summary |
|---|---|
| public boolean isSameFile(DocFile other) Implements abstract jdk. Return true if this file is the same as another.
| |
| list | back to summary |
|---|---|
| public Iterable Implements abstract jdk. If the file is a directory, list its contents.
| |
| mkdirs | back to summary |
|---|---|
| public boolean mkdirs() Implements abstract jdk. Create the file as a directory, including any parent directories.
| |
| openInputStream | back to summary |
|---|---|
| public InputStream openInputStream() throws DocFileIOException Implements abstract jdk. Open an input stream for the file.
| |
| openOutputStream | back to summary |
|---|---|
| public OutputStream openOutputStream() throws DocFileIOException Implements abstract jdk. Open an output stream for the file.
The file must have been created with a location of
| |
| openWriter | back to summary |
|---|---|
| public Writer openWriter() throws DocFileIOException, UnsupportedEncodingException Implements abstract jdk. Open an writer for the file, using the encoding (if any) given in the
doclet configuration.
The file must have been created with a location of
| |
| resolve | back to summary |
|---|---|
| public DocFile resolve(DocPath p) Implements abstract jdk. Derive a new file by resolving a relative path against this file. The new file will inherit the configuration and location of this file If this file has a path set, the new file will have a corresponding new path.
| |
| resolve | back to summary |
|---|---|
| public DocFile resolve(String p) Implements abstract jdk. Derive a new file by resolving a relative path against this file. The new file will inherit the configuration and location of this file If this file has a path set, the new file will have a corresponding new path.
| |
| resolveAgainst | back to summary |
|---|---|
| public DocFile resolveAgainst(JavaFileManager. Implements abstract jdk. Resolve a relative file against the given output location.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Return a string to identify the contents of this object, for debugging purposes.
| |