| ||||||||||
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.FilterCodeWriter
com.sun.codemodel.writer.ProgressCodeWriter
public class ProgressCodeWriter
Filter CodeWriter that writes a progress message to the specified PrintStream.
Field Summary |
---|
Fields inherited from class com.sun.codemodel.writer.FilterCodeWriter |
---|
core |
Fields inherited from class com.sun.codemodel.CodeWriter |
---|
encoding |
Constructor Summary | |
---|---|
ProgressCodeWriter(CodeWriter output, PrintStream progress) |
Method Summary | |
---|---|
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 com.sun.codemodel.writer.FilterCodeWriter |
---|
close |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProgressCodeWriter(CodeWriter output, PrintStream progress)
Method Detail |
---|
public OutputStream openBinary(JPackage pkg, String fileName) throws IOException
CodeWriter
The 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 FilterCodeWriter
pkg
- 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
CodeWriter
The 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 FilterCodeWriter
pkg
- The package of the file to be written.fileName
- File name without the path. Something like "Foo.java" or "Bar.properties"IOException
| ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |