|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Handler
nl.tudelft.simulation.logger.handlers.MemoryHandler
public class MemoryHandler
A MemoryHandler which makes it possible to push to a dynamic target.
(c) copyright 2002-2005 Delft
University of Technology , the Netherlands.
See for project information
www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
| Constructor Summary | |
|---|---|
MemoryHandler()
constructs a new MemoryHandler |
|
MemoryHandler(int size)
constructs a new MemoryHandler |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
flush()
|
java.util.logging.Formatter |
getFormatter()
|
int |
getSize()
returns the size |
void |
publish(java.util.logging.LogRecord logRecord)
|
void |
push(java.util.logging.Handler target)
pushes the memory to a handler |
void |
setFormatter(java.util.logging.Formatter arg0)
|
void |
setSize(int size)
sets the number of records this handler can hold |
| Methods inherited from class java.util.logging.Handler |
|---|
getEncoding, getErrorManager, getFilter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setLevel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MemoryHandler()
public MemoryHandler(int size)
size - the size of the memoryHandler| Method Detail |
|---|
public void close()
close in class java.util.logging.HandlerHandler.close()public void flush()
flush in class java.util.logging.HandlerHandler.flush()public java.util.logging.Formatter getFormatter()
getFormatter in class java.util.logging.HandlerHandler.getFormatter()public int getSize()
public void publish(java.util.logging.LogRecord logRecord)
publish in class java.util.logging.HandlerHandler.publish(java.util.logging.LogRecord)public void push(java.util.logging.Handler target)
target - the targetpublic void setFormatter(java.util.logging.Formatter arg0)
setFormatter in class java.util.logging.HandlerHandler.setFormatter(java.util.logging.Formatter)public void setSize(int size)
size - the size
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||