public class SingleStreamCodeWriter extends CodeWriter
| Constructor and Description |
|---|
SingleStreamCodeWriter(OutputStream os) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Called by CodeModel at the end of the process.
|
OutputStream |
openBinary(GeneratedPackage pkg,
String fileName)
Called by CodeModel to store the specified file.
|
openSourcepublic SingleStreamCodeWriter(OutputStream os)
os - This stream will be closed at the end of the code generation.public OutputStream openBinary(GeneratedPackage pkg, String fileName) throws IOException
CodeWriteropenBinary in class CodeWriterpkg - The package of the file to be written.fileName - File name without the path. Something like
"Foo.java" or "Bar.properties"IOExceptionpublic void close()
throws IOException
CodeWriterclose in class CodeWriterIOExceptionCopyright © 2010–2015 MuleSoft, Inc.. All rights reserved.