public class FileCodeWriter extends CodeWriter
| Constructor and Description |
|---|
FileCodeWriter(File target) |
FileCodeWriter(File target,
boolean readOnly) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Called by CodeModel at the end of the process.
|
protected File |
getFile(GeneratedPackage pkg,
String fileName) |
OutputStream |
openBinary(GeneratedPackage pkg,
String fileName)
Called by CodeModel to store the specified file.
|
openSourcepublic FileCodeWriter(File target) throws IOException
IOExceptionpublic FileCodeWriter(File target, boolean readOnly) throws IOException
IOExceptionpublic 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"IOExceptionprotected File getFile(GeneratedPackage pkg, String fileName) throws IOException
IOExceptionpublic void close()
throws IOException
CodeWriterclose in class CodeWriterIOExceptionCopyright © 2010–2015 MuleSoft, Inc.. All rights reserved.