|
JBoss Log Manager 1.4.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Handler
org.jboss.logmanager.ExtHandler
org.jboss.logmanager.handlers.WriterHandler
org.jboss.logmanager.handlers.OutputStreamHandler
public class OutputStreamHandler
An output stream handler which supports any OutputStream, using the specified encoding. If no encoding is
specified, the platform default is used.
| Field Summary |
|---|
| Fields inherited from class org.jboss.logmanager.handlers.WriterHandler |
|---|
outputLock |
| Fields inherited from class org.jboss.logmanager.ExtHandler |
|---|
handlers, handlersUpdater |
| Constructor Summary | |
|---|---|
OutputStreamHandler()
Construct a new instance with no formatter. |
|
OutputStreamHandler(Formatter formatter)
Construct a new instance. |
|
OutputStreamHandler(OutputStream outputStream,
Formatter formatter)
Construct a new instance. |
|
| Method Summary | |
|---|---|
String |
getEncoding()
Get the target encoding. |
void |
setEncoding(String encoding)
Set the target encoding. |
void |
setOutputStream(OutputStream outputStream)
Set the output stream to write to. |
void |
setWriter(Writer writer)
Set the writer. |
| Methods inherited from class org.jboss.logmanager.handlers.WriterHandler |
|---|
close, doPublish, flush, preWrite, safeClose |
| Methods inherited from class org.jboss.logmanager.ExtHandler |
|---|
addHandler, checkAccess, checkAccess, clearHandlers, disableAccess, enableAccess, getHandlers, isAutoFlush, isEnabled, protect, publish, publish, removeHandler, setAutoFlush, setEnabled, setErrorManager, setFilter, setFormatter, setHandlers, setLevel, unprotect |
| Methods inherited from class java.util.logging.Handler |
|---|
getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OutputStreamHandler()
public OutputStreamHandler(Formatter formatter)
formatter - the formatter to use
public OutputStreamHandler(OutputStream outputStream,
Formatter formatter)
outputStream - the output stream to useformatter - the formatter to use| Method Detail |
|---|
public String getEncoding()
getEncoding in class Handlernull if the platform default is being used
public void setEncoding(String encoding)
throws SecurityException,
UnsupportedEncodingException
setEncoding in class ExtHandlerencoding - the new encoding
SecurityException - if you do not have sufficient permission to invoke this operation
UnsupportedEncodingException - if the specified encoding is not supportedpublic 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 none
|
JBoss Log Manager 1.4.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||