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

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by com.sun.tools.javac.processing.JavacFiler.FilerOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable
Enclosing class:
JavacFiler

private class JavacFiler.FilerOutputStream
extends java.io.FilterOutputStream

Wrap a OutputStream 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.FilterOutputStream
out
 
Constructor Summary
JavacFiler.FilerOutputStream(java.lang.String typeName, FileObject fileObject)
           
 
Method Summary
 void close()
           
 
Methods inherited from class java.io.FilterOutputStream
flush, write, 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.FilerOutputStream

JavacFiler.FilerOutputStream(java.lang.String typeName,
                             FileObject fileObject)
                       throws java.io.IOException
Parameters:
typeName - name of class or null if just a binary 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.FilterOutputStream
Throws:
java.io.IOException