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

java.lang.Object
  extended by java.io.Writer
      extended by java.io.FilterWriter
          extended by com.sun.tools.javac.processing.JavacFiler.FilerWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable
Enclosing class:
JavacFiler

private class JavacFiler.FilerWriter
extends java.io.FilterWriter

Wrap a Writer returned from the JavaFileManager to properly register source or class files when they are closed.


Field Summary
(package private)  boolean closed
           
(package private)  FileObject fileObject
           
(package private)  java.lang.String typeName
           
 
Fields inherited from class java.io.FilterWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
JavacFiler.FilerWriter(java.lang.String typeName, FileObject fileObject)
           
 
Method Summary
 void close()
           
 
Methods inherited from class java.io.FilterWriter
flush, write, write, write
 
Methods inherited from class java.io.Writer
append, append, append, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

typeName

java.lang.String typeName

fileObject

FileObject fileObject

closed

boolean closed
Constructor Detail

JavacFiler.FilerWriter

JavacFiler.FilerWriter(java.lang.String typeName,
                       FileObject fileObject)
                 throws java.io.IOException
Parameters:
fileObject - the fileObject to be written to
typeName - name of source file or null if just a text file
Throws:
java.io.IOException
Method Detail

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.FilterWriter
Throws:
java.io.IOException