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, getNewLine
public FilterCodeWriter(@Nonnull AbstractCodeWriter aCore)
@Nonnull protected AbstractCodeWriter core()
public OutputStream openBinary(@Nonnull JPackage pkg, @Nonnull String fileName) throws IOException
AbstractCodeWriter
openBinary
in class AbstractCodeWriter
pkg
- 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
AbstractCodeWriter
openSource
in class AbstractCodeWriter
pkg
- 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
AbstractCodeWriter
close
in interface Closeable
close
in interface AutoCloseable
close
in class AbstractCodeWriter
IOException
Copyright © 2013–2018 Philip Helger. All rights reserved.