|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.logging.Handler
edu.udo.cs.miningmart.gui.application.PrintViewHandler
A Handler
for the PrintViewer
.
Constructor Summary | |
PrintViewHandler(java.io.OutputStream out)
Create a StreamHandler with a given Formatter and output stream. |
|
PrintViewHandler(java.io.OutputStream out,
java.util.logging.Formatter formatter)
Create a StreamHandler with a given Formatter and output stream. |
Method Summary | |
void |
close()
|
void |
flush()
|
void |
publish(java.util.logging.LogRecord record)
Format and publish a LogRecord. |
Methods inherited from class java.util.logging.Handler |
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PrintViewHandler(java.io.OutputStream out)
out
- the target output streampublic PrintViewHandler(java.io.OutputStream out, java.util.logging.Formatter formatter)
out
- the target output streamformatter
- Formatter to be used to format outputMethod Detail |
public void publish(java.util.logging.LogRecord record)
The StreamHandler first checks if there is an OutputStream and if the given LogRecord has at least the required log level. If not it silently returns. If so, it calls any associated Filter to check if the record should be published. If so, it calls its Formatter to format the record and then writes the result to the current output stream.
If this is the first LogRecord to be written to a given OutputStream, the Formatter's "head" string is written to the stream before the LogRecord is written.
record
- description of the log event. A null record is
silently ignored and is not publishedpublic void close() throws java.lang.SecurityException
java.lang.SecurityException
public void flush()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |