| Modifier and Type | Field and Description |
|---|---|
| protected String | encoding
Encoding to be used by the writer. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| public abstract OutputStream | openBinary(JPackage
The package of the file to be written. pkg, String File name without the path. Something like
"Foo.java" or "Bar.properties" fileName)Called by CodeModel to store the specified file. |
| public Writer | openSource(JPackage
The package of the file to be written. pkg, String File name without the path. Something like
"Foo.java" or "Bar.properties" fileName)Called by CodeModel to store the specified file. |
| encoding | back to summary |
|---|---|
| protected String encoding Encoding to be used by the writer. Null means platform specific encoding.
| |
| CodeWriter | back to summary |
|---|---|
| public CodeWriter() | |
| close | back to summary |
|---|---|
| public abstract void close() throws IOException Called by CodeModel at the end of the process. | |
| openBinary | back to summary |
|---|---|
| public abstract OutputStream openBinary(JPackage pkg, String fileName) throws IOException Called by CodeModel to store the specified file. The callee must allocate a storage to store the specified file. The returned stream will be closed before the next file is stored. So the callee can assume that only one OutputStream is active at any given time. | |
| openSource | back to summary |
|---|---|
| public Writer openSource(JPackage pkg, String fileName) throws IOException Called by CodeModel to store the specified file. The callee must allocate a storage to store the specified file. The returned stream will be closed before the next file is stored. So the callee can assume that only one OutputStream is active at any given time. | |