public class FilterCodeWriter extends CodeWriter
CodeWriter
that delegates to another CodeWriter
.Modifier and Type | Field and Description |
---|---|
protected CodeWriter |
core |
Constructor and Description |
---|
FilterCodeWriter(CodeWriter core) |
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.
|
Writer |
openSource(GeneratedPackage pkg,
String fileName)
Called by CodeModel to store the specified file.
|
protected CodeWriter core
public FilterCodeWriter(CodeWriter core)
public OutputStream openBinary(GeneratedPackage pkg, String fileName) throws IOException
CodeWriter
openBinary
in class CodeWriter
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
CodeWriter
openSource
in class CodeWriter
pkg
- The package of the file to be written.fileName
- File name without the path. Something like
"Foo.java" or "Bar.properties"IOException
public void close() throws IOException
CodeWriter
close
in class CodeWriter
IOException
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.