| Modifier and Type | Field and Description |
|---|---|
| private final OutputStream | m_os
The byte stream to write to. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements abstract java. Implements com. Close the stream, flushing it first. |
| public void | flush()
Implements abstract java. Implements com. Flush the stream. |
| public OutputStream | Returns: reference to the result stream, or null of only a writer was set.Implements com. Get the output stream where the events will be serialized to. |
| public Writer | getWriter()
Implements com. Get the writer that this writer directly chains to. |
| public void | write(char[]
Array of characters chars, int Offset from which to start writing characters start, int Number of characters to write length)Implements abstract java. Implements com. Write a portion of an array of characters. |
| public void | write(int
int specifying a character to be written. c)Overrides java. Implements com. Write a single character. |
| public void | write(String
String to be written s)Overrides java. Implements com. Write a string. |
| m_os | back to summary |
|---|---|
| private final OutputStream m_os The byte stream to write to. | |
| WriterToASCI | back to summary |
|---|---|
| public WriterToASCI(OutputStream os) Create an unbuffered ASCII writer.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements abstract java. Implements com. Close the stream, flushing it first. Once a stream has been closed, further write() or flush() invocations will cause an IOException to be thrown. Closing a previously-closed stream, however, has no effect.
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Implements abstract java. Implements com. Flush the stream. If the stream has saved any characters from the various write() methods in a buffer, write them immediately to their intended destination. Then, if that destination is another character or byte stream, flush it. Thus one flush() invocation will flush all the buffers in a chain of Writers and OutputStreams.
| |
| getOutputStream | back to summary |
|---|---|
| public OutputStream getOutputStream() Implements com. Get the output stream where the events will be serialized to.
| |
| getWriter | back to summary |
|---|---|
| public Writer getWriter() Implements com. Get the writer that this writer directly chains to. | |
| write | back to summary |
|---|---|
| public void write(char[] chars, int start, int length) throws IOException Implements abstract java. Implements com. Write a portion of an array of characters.
| |
| write | back to summary |
|---|---|
| public void write(int c) throws IOException Overrides java. Implements com. Write a single character. The character to be written is contained in the 16 low-order bits of the given integer value; the 16 high-order bits are ignored. Subclasses that intend to support efficient single-character output should override this method.
| |
| write | back to summary |
|---|---|
| public void write(String s) throws IOException Overrides java. Implements com. Write a string.
| |