public abstract class AbstractCodeWriter extends Object implements Closeable
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCodeWriter(Charset aEncoding) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close()
Called by CodeModel at the end of the process.
|
Charset |
encoding() |
abstract OutputStream |
openBinary(JPackage pkg,
String fileName)
Called by CodeModel to store the specified file.
|
Writer |
openSource(JPackage pkg,
String fileName)
Called by CodeModel to store the specified file.
|
@Nonnull public abstract OutputStream openBinary(@Nonnull JPackage pkg, @Nonnull String fileName) throws IOException
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 error@Nonnull public Writer openSource(@Nonnull JPackage pkg, @Nonnull String fileName) throws IOException
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 abstract void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2013–2015 Philip Helger. All rights reserved.