OutputStream, using the specified encoding. If no encoding is
specified, the platform default is used.
| Modifier and Type | Field and Description |
|---|---|
| private OutputStream |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | OutputStreamHandler(final OutputStream
the output stream to use outputStream, final Formatter the formatter to use formatter)Construct a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| private Writer | |
| pack-priv OutputStream | |
| protected void | setCharsetPrivate(Charset
the character set (must not be charset)null)Overrides org. Set the handler's character set from within this handler. |
| public void | setOutputStream(final OutputStream
the new output stream or outputStream)null for noneSet the output stream to write to. |
| public void | setWriter(final Writer
the new writer, or writer)null to disable loggingOverrides org. Set the writer. |
| outputStream | back to summary |
|---|---|
| private OutputStream outputStream | |
| OutputStreamHandler | back to summary |
|---|---|
| public OutputStreamHandler() Construct a new instance with no formatter. | |
| OutputStreamHandler | back to summary |
|---|---|
| public OutputStreamHandler(final Formatter formatter) Construct a new instance.
| |
| OutputStreamHandler | back to summary |
|---|---|
| public OutputStreamHandler(final OutputStream outputStream, final Formatter formatter) Construct a new instance.
| |
| getNewWriter | back to summary |
|---|---|
| private Writer getNewWriter(OutputStream newOutputStream) | |
| getOutputStream | back to summary |
|---|---|
| pack-priv OutputStream getOutputStream() | |
| setCharsetPrivate | back to summary |
|---|---|
| protected void setCharsetPrivate(Charset charset) throws SecurityException Overrides org. Doc from org. Set the handler's character set from within this handler. If not set, the handler's character set is initialized to the platform default character set. | |
| setOutputStream | back to summary |
|---|---|
| public void setOutputStream(final OutputStream outputStream) Set the output stream to write to. The output stream will then belong to this handler; when the handler is closed or a new writer or output stream is set, this output stream will be closed.
| |
| setWriter | back to summary |
|---|---|
| public void setWriter(final Writer writer) Overrides org. Doc from org. Set the writer. The writer will then belong to this handler; when the handler is closed or a new writer is set, this writer will be closed. Setting a writer will replace any target output stream.
| |