com.sun.tools.xjc.api.util
Class FilerCodeWriter
java.lang.Object
com.sun.codemodel.CodeWriter
com.sun.tools.xjc.api.util.FilerCodeWriter
public final class FilerCodeWriter
- extends com.sun.codemodel.CodeWriter
CodeWriter
that generates source code to 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 |
FilerCodeWriter
public FilerCodeWriter(Filer filer)
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