public final class FilerCodeWriter extends CodeWriter
| Constructor and Description |
|---|
FilerCodeWriter(Filer filer) |
| 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.
|
public FilerCodeWriter(Filer filer)
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 Writer openSource(GeneratedPackage pkg, String fileName) throws IOException
CodeWriteropenSource 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()
CodeWriterclose in class CodeWriterCopyright © 2010–2015 MuleSoft, Inc.. All rights reserved.