| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final JavaFileObject. | |
| private final URI |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public boolean | |
| public Modifier | getAccessLevel()
Implements javax. Provides a hint about the access level of the class represented by this file object. |
| public CharSequence | getCharContent(boolean
ignore encoding errors if true ignoreEncodingErrors)Implements javax. Returns the character content of this file object, if available. |
| public JavaFileObject. | |
| public long | getLastModified()
Implements javax. Returns the time this file object was last modified. |
| public String | getName()
Implements javax. Returns a user-friendly name for this file object. |
| public NestingKind | getNestingKind()
Implements javax. Provides a hint about the nesting level of the class represented by this file object. |
| public boolean | isNameCompatible(String
a simple name of a class simpleName, JavaFileObject.a kind kindImplements javax. Checks if this file object is compatible with the specified simple name and kind. |
| public InputStream | openInputStream()
Implements javax. Returns an InputStream for this file object. |
| public OutputStream | openOutputStream()
Implements javax. Returns an OutputStream for this file object. |
| public Reader | openReader(boolean
ignore encoding errors if true ignoreEncodingErrors)Implements javax. Returns a reader for this object. |
| public Writer | |
| public String | |
| public URI |
| binaryName | back to summary |
|---|---|
| private final String binaryName | |
| kind | back to summary |
|---|---|
| private final JavaFileObject. | |
| uri | back to summary |
|---|---|
| private final URI uri | |
| CustomJavaFileObject | back to summary |
|---|---|
| protected CustomJavaFileObject(URI uri, JavaFileObject. | |
| binaryName | back to summary |
|---|---|
| public String binaryName() | |
| delete | back to summary |
|---|---|
| public boolean delete() Implements javax. Doc from javax. Deletes this file object. In case of errors, returns false.
| |
| getAccessLevel | back to summary |
|---|---|
| public Modifier getAccessLevel() Implements javax. Doc from javax. Provides a hint about the access level of the class represented
by this file object. If the access level is not known or
this file object does not represent a class file this method
returns
| |
| getCharContent | back to summary |
|---|---|
| public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException Implements javax. Doc from javax. Returns the character content of this file object, if available.
Any byte that cannot be decoded will be replaced by the default
translation character. In addition, a diagnostic may be
reported unless
| |
| getKind | back to summary |
|---|---|
| public JavaFileObject. Implements javax. Doc from javax. Returns the kind of this file object.
| |
| getLastModified | back to summary |
|---|---|
| public long getLastModified() Implements javax. Doc from javax. Returns the time this file object was last modified. The time is measured in milliseconds since the epoch (00:00:00 GMT, January 1, 1970).
| |
| getName | back to summary |
|---|---|
| public String getName() Implements javax. Doc from javax. Returns a user-friendly name for this file object. The exact
value returned is not specified but implementations should take
care to preserve names as given by the user. For example, if
the user writes the filename
| |
| getNestingKind | back to summary |
|---|---|
| public NestingKind getNestingKind() Implements javax. Doc from javax. Provides a hint about the nesting level of the class
represented by this file object. This method may return
| |
| isNameCompatible | back to summary |
|---|---|
| public boolean isNameCompatible(String simpleName, JavaFileObject. Implements javax. Doc from javax. Checks if this file object is compatible with the specified simple name and kind. A simple name is a single identifier (not qualified) as defined in The Java Language Specification, section 6.2.
| |
| openInputStream | back to summary |
|---|---|
| public InputStream openInputStream() throws IOException Implements javax. Doc from javax. Returns an InputStream for this file object.
| |
| openOutputStream | back to summary |
|---|---|
| public OutputStream openOutputStream() throws IOException Implements javax. Doc from javax. Returns an OutputStream for this file object.
| |
| openReader | back to summary |
|---|---|
| public Reader openReader(boolean ignoreEncodingErrors) throws IOException Implements javax. Doc from javax. Returns a reader for this object. The returned reader will
replace bytes that cannot be decoded with the default
translation character. In addition, the reader may report a
diagnostic unless
| |
| openWriter | back to summary |
|---|---|
| public Writer openWriter() throws IOException Implements javax. Doc from javax. Returns a Writer for this file object.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| toUri | back to summary |
|---|---|
| public URI toUri() Implements javax. Doc from javax. Returns a URI identifying this file object. | |