| Modifier and Type | Field and Description |
|---|---|
| private final PrintStream |
| Access | Constructor and Description |
|---|---|
| public | SingleStreamCodeWriter(OutputStream
This stream will be closed at the end of the code generation. os)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements abstract com. Called by CodeModel at the end of the process. |
| public OutputStream | openBinary(JPackage pkg, String fileName)
Implements abstract com. Called by CodeModel to store the specified file. |
| out | back to summary |
|---|---|
| private final PrintStream out | |
| SingleStreamCodeWriter | back to summary |
|---|---|
public SingleStreamCodeWriter(OutputStream os)
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements abstract com. Doc from com. Called by CodeModel at the end of the process.
| |
| openBinary | back to summary |
|---|---|
| public OutputStream openBinary(JPackage pkg, String fileName) throws IOException Implements abstract com. Doc from com. 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.
| |