public class SingleStreamCodeWriter extends AbstractCodeWriter
| Constructor and Description |
|---|
SingleStreamCodeWriter(OutputStream aOS) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Called by CodeModel at the end of the process.
|
OutputStream |
openBinary(JPackage aPkg,
String sFilename)
Called by CodeModel to store the specified file.
|
encoding, openSourcepublic SingleStreamCodeWriter(@Nonnull OutputStream aOS)
aOS - This stream will be closed at the end of the code generation. Except
it is System.out or System.errpublic OutputStream openBinary(@Nonnull JPackage aPkg, @Nonnull String sFilename) throws IOException
AbstractCodeWriteropenBinary in class AbstractCodeWriteraPkg - The package of the file to be written.sFilename - File name without the path. Something like "Foo.java" or
"Bar.properties"IOException - On IO errorpublic void close()
throws IOException
AbstractCodeWriterclose in interface Closeableclose in interface AutoCloseableclose in class AbstractCodeWriterIOExceptionCopyright © 2013–2015 Philip Helger. All rights reserved.