Closeable, Flushable, AutoCloseable, FlushableCloseable, ProtectableConsoleHandler, FileHandlerpublic class OutputStreamHandler extends WriterHandler
OutputStream, using the specified encoding. If no encoding is
specified, the platform default is used.handlers, handlersUpdateroutputLock| Constructor | Description |
|---|---|
OutputStreamHandler() |
Construct a new instance with no formatter.
|
OutputStreamHandler(OutputStream outputStream,
Formatter formatter) |
Construct a new instance.
|
OutputStreamHandler(Formatter formatter) |
Construct a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
Charset |
getCharset() |
Get the handler's character set.
|
protected void |
setCharsetPrivate(Charset charset) |
Set the handler's character set from within this handler.
|
void |
setOutputStream(OutputStream outputStream) |
Set the output stream to write to.
|
void |
setWriter(Writer writer) |
Set the writer.
|
addHandler, checkAccess, checkAccess, clearHandlers, disableAccess, enableAccess, getEncoding, getHandlers, isAutoFlush, isCallerCalculationRequired, isCloseChildren, isEnabled, protect, publish, publish, removeHandler, setAutoFlush, setCharset, setCloseChildren, setEnabled, setEncoding, setErrorManager, setFilter, setFormatter, setHandlers, setLevel, unprotectgetErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, doPublish, flush, isCheckHeadEncoding, isCheckTailEncoding, preWrite, safeClose, setCheckHeadEncoding, setCheckTailEncodingpublic OutputStreamHandler()
public OutputStreamHandler(Formatter formatter)
formatter - the formatter to usepublic OutputStreamHandler(OutputStream outputStream, Formatter formatter)
outputStream - the output stream to useformatter - the formatter to useprotected void setCharsetPrivate(Charset charset) throws SecurityException
ExtHandlersetCharsetPrivate in class ExtHandlercharset - the character set (must not be null)SecurityExceptionpublic Charset getCharset()
ExtHandlergetCharset in class ExtHandlernull)public void setWriter(Writer writer)
setWriter in class WriterHandlerwriter - the new writer, or null to disable loggingpublic void setOutputStream(OutputStream outputStream)
outputStream - the new output stream or null for noneCopyright © 2020 JBoss by Red Hat. All rights reserved.