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"IOException
public 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"IOException
public abstract void close() throws IOException
IOException
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.