API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.tools. SimpleJavaFileObject View Source
Author(s)
Peter von der Ahé
Since
1.6
Version
Serial
Hierarchy
 Object
      SimpleJavaFileObject
Implements
 JavaFileObject
Subclasses
Description
public class SimpleJavaFileObject
  Provides simple implementations for most methods in JavaFileObject.
See also:   
Constructors
protected SimpleJavaFileObject (URI uri, Kind kind)
  Construct a SimpleJavaFileObject of the given kind and with the given URI.
Methods
Hide/Show inherited methods
public boolean delete ()
  This implementation does nothing.
public Modifier getAccessLevel () [Specified in JavaFileObject]
  This implementation returns null.
public CharSequence getCharContent (boolean ignoreEncodingErrors) throws IOException
  This implementation always throws UnsupportedOperationException.
public Kind getKind () [Specified in JavaFileObject]
 
public long getLastModified ()
  This implementation returns 0L.
public String getName ()
public NestingKind getNestingKind () [Specified in JavaFileObject]
  This implementation returns null.
public boolean isNameCompatible (String simpleName, Kind kind) [Specified in JavaFileObject]
  This implementation compares the path of its URI to the given simple name.
public InputStream openInputStream () throws IOException
  This implementation always throws UnsupportedOperationException.
public OutputStream openOutputStream () throws IOException
  This implementation always throws UnsupportedOperationException.
public Reader openReader (boolean ignoreEncodingErrors) throws IOException
  Wraps the result of SimpleJavaFileObject.getCharContent(boolean) in a Reader.
public Writer openWriter () throws IOException
  Wraps the result of openOutputStream in a Writer.
@Override
public String toString ()
public URI toUri ()
Fields
Hide/Show inherited fields
protectedfinal Kind kind
The kind of this file object.
protectedfinal URI uri
A URI for this file object.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar