public class FileCodeWriter extends AbstractCodeWriter
| Constructor and Description |
|---|
FileCodeWriter(File aTargetDir) |
FileCodeWriter(File aTargetDir,
boolean bMarkReadOnly) |
FileCodeWriter(File aTargetDir,
boolean bMarkReadOnly,
Charset encoding) |
FileCodeWriter(File aTargetDir,
Charset encoding) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Called by CodeModel at the end of the process.
|
protected File |
getFile(JPackage pkg,
String fileName) |
OutputStream |
openBinary(JPackage pkg,
String fileName)
Called by CodeModel to store the specified file.
|
encoding, openSourcepublic FileCodeWriter(@Nonnull File aTargetDir) throws IOException
IOExceptionpublic FileCodeWriter(@Nonnull File aTargetDir, @Nullable Charset encoding) throws IOException
IOExceptionpublic FileCodeWriter(@Nonnull File aTargetDir, boolean bMarkReadOnly) throws IOException
IOExceptionpublic FileCodeWriter(@Nonnull File aTargetDir, boolean bMarkReadOnly, @Nullable Charset encoding) throws IOException
IOException@Nonnull public OutputStream openBinary(@Nonnull JPackage pkg, @Nonnull String fileName) throws IOException
AbstractCodeWriteropenBinary in class AbstractCodeWriterpkg - The package of the file to be written.fileName - File name without the path. Something like "Foo.java" or
"Bar.properties"IOException - On IO error@Nonnull protected File getFile(@Nonnull JPackage pkg, @Nonnull String fileName) throws IOException
IOExceptionpublic void close()
throws IOException
AbstractCodeWriterclose in interface Closeableclose in interface AutoCloseableclose in class AbstractCodeWriterIOExceptionCopyright © 2013–2015 Philip Helger. All rights reserved.