com.sun.tools.xjc.api.util
Class FilerCodeWriter

java.lang.Object
  extended by com.sun.codemodel.CodeWriter
      extended by com.sun.tools.xjc.api.util.FilerCodeWriter

public final class FilerCodeWriter
extends com.sun.codemodel.CodeWriter

CodeWriter that generates source code to Filer.


Constructor Summary
FilerCodeWriter(Filer filer)
           
 
Method Summary
 void close()
           
 java.io.OutputStream openBinary(com.sun.codemodel.JPackage pkg, java.lang.String fileName)
           
 java.io.Writer openSource(com.sun.codemodel.JPackage pkg, java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilerCodeWriter

public FilerCodeWriter(Filer filer)
Method Detail

openBinary

public java.io.OutputStream openBinary(com.sun.codemodel.JPackage pkg,
                                       java.lang.String fileName)
                                throws java.io.IOException
Specified by:
openBinary in class com.sun.codemodel.CodeWriter
Throws:
java.io.IOException

openSource

public java.io.Writer openSource(com.sun.codemodel.JPackage pkg,
                                 java.lang.String fileName)
                          throws java.io.IOException
Overrides:
openSource in class com.sun.codemodel.CodeWriter
Throws:
java.io.IOException

close

public void close()
Specified by:
close in class com.sun.codemodel.CodeWriter