|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.util.logging.AbstractLogWriter
public abstract class AbstractLogWriter
provides filtering capabilities for a LogWriter. Extending classes only
need to implement writeLogEntry(Object),
| Field Summary | |
|---|---|
protected Filter<LogEntry> |
filter
DOCUMENT ME! |
protected LogEntryFormatter |
formatter
DOCUMENT ME! |
| Constructor Summary | |
|---|---|
protected |
AbstractLogWriter()
Creates a new AbstractLogWriter object. |
protected |
AbstractLogWriter(Filter<LogEntry> filter)
Creates a new AbstractLogWriter object. |
protected |
AbstractLogWriter(Filter<LogEntry> filter,
LogEntryFormatter formatter)
Creates a new AbstractLogWriter object. |
protected |
AbstractLogWriter(LogEntryFormatter formatter)
Creates a new AbstractLogWriter object. |
| Method Summary | |
|---|---|
boolean |
accept(LogEntry entry)
returns true if either the filter is null or the filter accepts the given entry |
Filter<LogEntry> |
getLogFilter()
DOCUMENT ME! |
protected LogEntryFormatter |
getLogFormatter()
DOCUMENT ME! |
void |
setLogFilter(Filter<LogEntry> filter)
DOCUMENT ME! |
protected void |
setLogFormatter(LogEntryFormatter formatter)
DOCUMENT ME! |
void |
write(LogEntry entry)
DOCUMENT ME! |
protected abstract void |
writeLogEntry(java.lang.Object pattern)
writes the pattern to the log entity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Filter<LogEntry> filter
protected LogEntryFormatter formatter
| Constructor Detail |
|---|
protected AbstractLogWriter()
protected AbstractLogWriter(LogEntryFormatter formatter)
formatter - DOCUMENT ME!protected AbstractLogWriter(Filter<LogEntry> filter)
filter - DOCUMENT ME!
protected AbstractLogWriter(Filter<LogEntry> filter,
LogEntryFormatter formatter)
filter - DOCUMENT ME!formatter - DOCUMENT ME!| Method Detail |
|---|
public Filter<LogEntry> getLogFilter()
public void setLogFilter(Filter<LogEntry> filter)
filter - DOCUMENT ME!public boolean accept(LogEntry entry)
accept in interface Filter<LogEntry>entry - DOCUMENT ME!
public void write(LogEntry entry)
throws LogException
write in interface LogWriterentry - DOCUMENT ME!
LogException - DOCUMENT ME!
protected abstract void writeLogEntry(java.lang.Object pattern)
throws LogException
pattern - DOCUMENT ME!
LogException - DOCUMENT ME!protected LogEntryFormatter getLogFormatter()
protected void setLogFormatter(LogEntryFormatter formatter)
formatter - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||