com.sun.tools.javac.processing
Class JavacFiler.FilerInputFileObject

java.lang.Object
  extended by javax.tools.ForwardingFileObject<FileObject>
      extended by com.sun.tools.javac.processing.JavacFiler.FilerInputFileObject
All Implemented Interfaces:
FileObject
Direct Known Subclasses:
JavacFiler.FilerInputJavaFileObject
Enclosing class:
JavacFiler

private class JavacFiler.FilerInputFileObject
extends ForwardingFileObject<FileObject>

Wrap a JavaFileObject to manage reading by the Filer.


Field Summary
 
Fields inherited from class javax.tools.ForwardingFileObject
fileObject
 
Constructor Summary
JavacFiler.FilerInputFileObject(FileObject fileObject)
           
 
Method Summary
 boolean delete()
          Deletes this file object.
 java.io.OutputStream openOutputStream()
          Gets an OutputStream for this file object.
 java.io.Writer openWriter()
          Gets a Writer for this file object.
 
Methods inherited from class javax.tools.ForwardingFileObject
getCharContent, getLastModified, getName, openInputStream, openReader, toUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavacFiler.FilerInputFileObject

JavacFiler.FilerInputFileObject(FileObject fileObject)
Method Detail

openOutputStream

public java.io.OutputStream openOutputStream()
                                      throws java.io.IOException
Description copied from interface: FileObject
Gets an OutputStream for this file object.

Specified by:
openOutputStream in interface FileObject
Overrides:
openOutputStream in class ForwardingFileObject<FileObject>
Returns:
an OutputStream
Throws:
java.io.IOException - if an I/O error occurred

openWriter

public java.io.Writer openWriter()
                          throws java.io.IOException
Description copied from interface: FileObject
Gets a Writer for this file object.

Specified by:
openWriter in interface FileObject
Overrides:
openWriter in class ForwardingFileObject<FileObject>
Returns:
a Writer
Throws:
java.io.IOException - if an I/O error occurred

delete

public boolean delete()
Description copied from interface: FileObject
Deletes this file object. In case of errors, returns false.

Specified by:
delete in interface FileObject
Overrides:
delete in class ForwardingFileObject<FileObject>
Returns:
true if and only if this file object is successfully deleted; false otherwise