public class ProgressCodeWriter extends FilterCodeWriter
| Modifier and Type | Field and Description |
|---|---|
private java.io.PrintStream |
progress |
coreencoding| Constructor and Description |
|---|
ProgressCodeWriter(CodeWriter output,
java.io.PrintStream progress) |
| Modifier and Type | Method and Description |
|---|---|
java.io.OutputStream |
openBinary(JPackage pkg,
java.lang.String fileName)
Called by CodeModel to store the specified file.
|
java.io.Writer |
openSource(JPackage pkg,
java.lang.String fileName)
Called by CodeModel to store the specified file.
|
private void |
report(JPackage pkg,
java.lang.String fileName) |
closepublic ProgressCodeWriter(CodeWriter output, java.io.PrintStream progress)
public java.io.OutputStream openBinary(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.
openBinary in class FilterCodeWriterpkg - The package of the file to be written.fileName - File name without the path. Something like
"Foo.java" or "Bar.properties"java.io.IOExceptionpublic 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 FilterCodeWriterpkg - The package of the file to be written.fileName - File name without the path. Something like
"Foo.java" or "Bar.properties"java.io.IOExceptionprivate void report(JPackage pkg, java.lang.String fileName)