Provides simple implementations for most methods in JavaFileObject.
This class is designed to be subclassed and used as a basis for
JavaFileObject implementations. Subclasses can override the
implementation and specification of any method of this class as
long as the general contract of JavaFileObject is obeyed.
author: Peter von der Ahé since: 1.6
Construct a SimpleJavaFileObject of the given kind and with the
given URI.
Parameters: uri - the URI for this file object Parameters: kind - the kind of this file object
This implementation returns
null . Subclasses can
change this behavior as long as the contract of
JavaFileObject is obeyed.
isNameCompatible
public boolean isNameCompatible(String simpleName, Kind kind)(Code)
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 .
Wraps the result of
in a Reader.
Subclasses can change this behavior as long as the contract of
FileObject is obeyed.
Parameters: ignoreEncodingErrors - a Reader wrapping the result of getCharContent throws: IllegalStateException - throws: UnsupportedOperationException - throws: IOException -