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 CodeWriter

CodeWriter that generates source code to Filer.

Author:
Kohsuke Kawaguchi

Field Summary
 
Fields inherited from class com.sun.codemodel.CodeWriter
encoding
 
Constructor Summary
FilerCodeWriter(Filer filer)
           
 
Method Summary
 void close()
           
 OutputStream openBinary(JPackage pkg, String fileName)
           
 Writer openSource(JPackage pkg, 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 OutputStream openBinary(JPackage pkg,
                               String fileName)
                        throws IOException
Specified by:
openBinary in class CodeWriter
Throws:
IOException

openSource

public Writer openSource(JPackage pkg,
                         String fileName)
                  throws IOException
Overrides:
openSource in class CodeWriter
Throws:
IOException

close

public void close()
Specified by:
close in class CodeWriter


Copyright © 2014 Oracle Corporation. All Rights Reserved.