public abstract class CodeWriter extends Object
| Constructor and Description |
|---|
CodeWriter() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close()
Called by CodeModel at the end of the process.
|
abstract OutputStream |
openBinary(GeneratedPackage pkg,
String fileName)
Called by CodeModel to store the specified file.
|
Writer |
openSource(GeneratedPackage pkg,
String fileName)
Called by CodeModel to store the specified file.
|
public abstract OutputStream openBinary(GeneratedPackage pkg, String fileName) throws IOException
pkg - The package of the file to be written.fileName - File name without the path. Something like
"Foo.java" or "Bar.properties"IOExceptionpublic Writer openSource(GeneratedPackage pkg, String fileName) throws IOException
pkg - The package of the file to be written.fileName - File name without the path. Something like
"Foo.java" or "Bar.properties"IOExceptionpublic abstract void close()
throws IOException
IOExceptionCopyright © 2010–2015 MuleSoft, Inc.. All rights reserved.