Implementing: javax.tools.FileObject
This implementation does nothing. Subclasses can change this
behavior as long as the contract of FileObject is
obeyed.
Returns: false
public Modifier getAccessLevel ()
public
CharSequence getCharContent (
boolean ignoreEncodingErrors) throws
IOException
Implementing: javax.tools.FileObject
This implementation always throws UnsupportedOperationException. Subclasses can change this
behavior as long as the contract of FileObject is
obeyed.
Parameters:
ignoreEncodingErrors | | ignore encoding errors if true |
Returns: a CharSequence if available; null otherwise
Exceptions:
IOException | | if an I/O error occurred |
public Kind getKind ()
public
long getLastModified ()
Implementing: javax.tools.FileObject
This implementation returns 0L. Subclasses can change
this behavior as long as the contract of FileObject is
obeyed.
Returns: 0L
public String getName ()
Implementing: javax.tools.FileObject
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 "BobsApp\Test.java" on
the command line, this method should return
"BobsApp\Test.java" whereas the toUri
method might return
file:///C:/Documents%20and%20Settings/UncleBob/BobsApp/Test.java.
Returns: a user-friendly name
public NestingKind getNestingKind ()
Implementing: javax.tools.JavaFileObject
This implementation returns null. Subclasses can
change this behavior as long as the contract of
JavaFileObject is obeyed.
Returns: the nesting kind, or null if the nesting kind
is not known
public
boolean isNameCompatible (
String simpleName,
Kind kind)
Implementing: javax.tools.JavaFileObject
This implementation compares the path of its URI to the given
simple name. This method returns true if the given kind is
equal to the kind of this object, and if the path is equal to
simpleName + kind.extension or if it ends with
"/" + simpleName + kind.extension.
This method calls getKind and toUri and
does not access the fields uri and kind
directly.
Subclasses can change this behavior as long as the contract
of JavaFileObject is obeyed.
Parameters:
simpleName | | a simple name of a class |
kind | | a kind |
Returns: true if this file object is compatible; false
otherwise
public InputStream openInputStream () throws IOException
public OutputStream openOutputStream () throws IOException
public
Reader openReader (
boolean ignoreEncodingErrors) throws
IOException
Implementing: javax.tools.FileObject
Wraps the result of getCharContent in a Reader.
Subclasses can change this behavior as long as the contract of
FileObject is obeyed.
Parameters:
ignoreEncodingErrors | | ignore encoding errors if true |
Returns: a Reader wrapping the result of getCharContent
Exceptions:
IOException | | if an I/O error occurred |
public Writer openWriter () throws IOException
Implementing: javax.tools.FileObject
Wraps the result of openOutputStream in a Writer. Subclasses
can change this behavior as long as the contract of FileObject is obeyed.
Returns: a Writer wrapping the result of openOutputStream
Exceptions:
IOException | | if an I/O error occurred |
public URI toUri ()