|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.adfnmc.java.util.logging.Handler
oracle.adfnmc.java.util.logging.StreamHandler
public class StreamHandler
A StreamHandler
object writes log messages to an output
stream, that is, an object of type java.io.OutputStream
.
A StreamHandler
reads the following properties from the log
manager to initialize itself:
Filter
class. No Filter
is used by default.Formatter
class. Default is
java.util.logging.SimpleFormatter
.Handler
. Default is Level.INFO
.This class is not thread-safe.
Field Summary |
---|
Fields inherited from class oracle.adfnmc.java.util.logging.Handler |
---|
prefix |
Constructor Summary | |
---|---|
StreamHandler()
Constructs a StreamHandler object. |
|
StreamHandler(java.io.OutputStream os,
Formatter formatter)
Constructs a StreamHandler object with the supplied output
stream and formatter. |
Method Summary | |
---|---|
void |
close()
Closes this handler. |
void |
flush()
Flushes any buffered output. |
boolean |
isLoggable(LogRecord record)
Determines whether the supplied log record need to be logged. |
void |
publish(LogRecord record)
Accepts an actual logging request. |
void |
setEncoding(java.lang.String encoding)
Sets the character encoding used by this handler. |
protected void |
setOutputStream(java.io.OutputStream os)
Sets the output stream this handler writes to. |
Methods inherited from class oracle.adfnmc.java.util.logging.Handler |
---|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel, setPrefix |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamHandler()
StreamHandler
object. The new stream handler
does not have an associated output stream.
public StreamHandler(java.io.OutputStream os, Formatter formatter)
StreamHandler
object with the supplied output
stream and formatter.
os
- the output stream this handler writes toformatter
- the formatter this handler uses to format the outputMethod Detail |
---|
protected void setOutputStream(java.io.OutputStream os)
os
- the new output stream
java.lang.SecurityException
- If a security manager determines that the caller does not
have the required permission.public void setEncoding(java.lang.String encoding) throws java.lang.SecurityException, java.io.UnsupportedEncodingException
null
value indicates the using of the default encoding.
setEncoding
in class Handler
encoding
- the character encoding to set
java.lang.SecurityException
- If a security manager determines that the caller does not
have the required permission.
java.io.UnsupportedEncodingException
- If the specified encoding is not supported by the runtime.public void close()
close
in class Handler
java.lang.SecurityException
- If a security manager determines that the caller does not
have the required permission.public void flush()
flush
in class Handler
public void publish(LogRecord record)
null
.
publish
in class Handler
record
- the log record to be loggedpublic boolean isLoggable(LogRecord record)
isLoggable
in class Handler
record
- the log record to be checked
true
if the supplied log record need to be logged,
otherwise false
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |