|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.codemodel.CodeWriter
com.sun.tools.xjc.api.util.FilerCodeWriter
public final class FilerCodeWriter
CodeWriter that generates source code to Filer.
| Field Summary |
|---|
| Fields inherited from class com.sun.codemodel.CodeWriter |
|---|
encoding |
| Constructor Summary | |
|---|---|
FilerCodeWriter(Filer filer)
|
|
| Method Summary | |
|---|---|
void |
close()
Called by CodeModel at the end of the process. |
OutputStream |
openBinary(JPackage pkg,
String fileName)
Called by CodeModel to store the specified file. |
Writer |
openSource(JPackage pkg,
String fileName)
Called by CodeModel to store the specified file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FilerCodeWriter(Filer filer)
| Method Detail |
|---|
public OutputStream openBinary(JPackage pkg,
String fileName)
throws IOException
CodeWriterThe returned stream will be closed before the next file is stored. So the callee can assume that only one OutputStream is active at any given time.
openBinary in class CodeWriterpkg - The package of the file to be written.fileName - File name without the path. Something like
"Foo.java" or "Bar.properties"
IOException
public Writer openSource(JPackage pkg,
String fileName)
throws IOException
CodeWriterThe returned stream will be closed before the next file is stored. So the callee can assume that only one OutputStream is active at any given time.
openSource in class CodeWriterpkg - The package of the file to be written.fileName - File name without the path. Something like
"Foo.java" or "Bar.properties"
IOExceptionpublic void close()
CodeWriter
close in class CodeWriter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||