public class ProgressCodeWriter extends FilterCodeWriter
coreencoding| Constructor and Description |
|---|
ProgressCodeWriter(CodeWriter output,
PrintStream progress) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
closepublic ProgressCodeWriter(CodeWriter output, PrintStream progress)
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 FilterCodeWriterpkg - The package of the file to be written.fileName - File name without the path. Something like
"Foo.java" or "Bar.properties"IOExceptionpublic 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 FilterCodeWriterpkg - The package of the file to be written.fileName - File name without the path. Something like
"Foo.java" or "Bar.properties"IOExceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.