public class ProgressCodeWriter extends FilterCodeWriter
encodingcore| Constructor | Description |
|---|---|
ProgressCodeWriter(CodeWriter output,
java.io.PrintStream progress) |
| Modifier and Type | Method | 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.
|
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.IOExceptionCopyright © 2018 Oracle Corporation. All rights reserved.