|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.codemodel.CodeWriter
com.sun.codemodel.writer.FileCodeWriter
com.sun.tools.ws.wscompile.WSCodeWriter
com.sun.tools.ws.wscompile.FilerCodeWriter
public class FilerCodeWriter
Writes all the source files using the specified Filer.
| Field Summary |
|---|
| Fields inherited from class com.sun.codemodel.CodeWriter |
|---|
encoding |
| Constructor Summary | |
|---|---|
FilerCodeWriter(java.io.File outDir,
Options options)
|
|
| Method Summary | |
|---|---|
void |
close()
Called by CodeModel at the end of the process. |
java.io.Writer |
openSource(JPackage pkg,
java.lang.String fileName)
Called by CodeModel to store the specified file. |
| Methods inherited from class com.sun.tools.ws.wscompile.WSCodeWriter |
|---|
getFile |
| Methods inherited from class com.sun.codemodel.writer.FileCodeWriter |
|---|
openBinary |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FilerCodeWriter(java.io.File outDir,
Options options)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public java.io.Writer openSource(JPackage pkg,
java.lang.String fileName)
throws java.io.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"
java.io.IOException
public void close()
throws java.io.IOException
CodeWriter
close in class FileCodeWriterjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||