public class FilterCodeWriter extends AbstractCodeWriter
AbstractCodeWriter that delegates to another
AbstractCodeWriter.| Constructor and Description |
|---|
FilterCodeWriter(AbstractCodeWriter aCore) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Called by CodeModel at the end of the process.
|
protected AbstractCodeWriter |
core() |
OutputStream |
openBinary(JPackage pkg,
String fileName)
Called by CodeModel to store the specified file.
|
SourcePrintWriter |
openSource(JPackage pkg,
String fileName)
Called by CodeModel to store the specified file.
|
encoding, getNewLinepublic FilterCodeWriter(@Nonnull AbstractCodeWriter aCore)
@Nonnull protected AbstractCodeWriter core()
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 errorpublic SourcePrintWriter openSource(@Nonnull JPackage pkg, @Nonnull String fileName) throws IOException
AbstractCodeWriteropenSource 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 errorpublic void close()
throws IOException
AbstractCodeWriterclose in interface Closeableclose in interface AutoCloseableclose in class AbstractCodeWriterIOExceptionCopyright © 2013–2018 Philip Helger. All rights reserved.