| Modifier and Type | Field and Description |
|---|---|
| private String | m_encoding
The encoding to use when creating byte array for string, may be null. |
| private OutputStream | m_outputStream
OutputStream we are writing to. |
| Access | Constructor and Description |
|---|---|
| public | StreamTarget(final OutputStream
the OutputStream to write to outputStream, final Formatter the Formatter to use formatter, final String Desired encoding to use when writing to the log, null
implies the default system encoding. encoding)Constructor that writes to a stream and uses a particular formatter. |
| public | StreamTarget(final OutputStream
the OutputStream to write to outputStream, final Formatter the Formatter to use formatter)Constructor that writes to a stream and uses a particular formatter. |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | close()
Overrides org. Implements org. |
| protected synchronized void | |
| protected synchronized void | |
| protected synchronized void |
| m_encoding | back to summary |
|---|---|
| private String m_encoding The encoding to use when creating byte array for string, may be null. | |
| m_outputStream | back to summary |
|---|---|
| private OutputStream m_outputStream OutputStream we are writing to. | |
| StreamTarget | back to summary |
|---|---|
| public StreamTarget(final OutputStream outputStream, final Formatter formatter, final String encoding) Constructor that writes to a stream and uses a particular formatter.
| |
| StreamTarget | back to summary |
|---|---|
| public StreamTarget(final OutputStream outputStream, final Formatter formatter) Constructor that writes to a stream and uses a particular formatter.
| |
| close | back to summary |
|---|---|
| public synchronized void close() Overrides org. Implements org. Shutdown target. Attempting to write to target after close() will cause errors to be logged. | |
| setOutputStream | back to summary |
|---|---|
| protected synchronized void setOutputStream(final OutputStream outputStream) Set the output stream. Close down old stream and write tail if appropriate.
| |
| shutdownStream | back to summary |
|---|---|
| protected synchronized void shutdownStream() Shutdown output stream. | |
| write | back to summary |
|---|---|
| protected synchronized void write(final String data) Overrides org. Abstract method that will output event.
| |