API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.logging. MemoryHandler View Source
Author(s)
Since
1.4
Version
1.26, 11/17/05
Serial
Hierarchy
 Object
      Handler
          MemoryHandler
Implements
Subclasses
Description
public class MemoryHandler
  Handler that buffers requests in a circular buffer in memory.
See also:   
Constructors
public MemoryHandler ()
Create a MemoryHandler and configure it based on LogManager configuration properties.
public MemoryHandler (Handler target, int size, Level pushLevel)
  Create a MemoryHandler.
Methods
Hide/Show inherited methods
pack-private void checkAccess () throws SecurityException [Inherited From Handler]
public void close () throws SecurityException [Specified in Handler]
  Close the Handler and free all associated resources.
public void flush () [Specified in Handler]
  Causes a flush on the target Handler.
public String getEncoding () [Inherited From Handler]
  Return the character encoding for this Handler.
public ErrorManager getErrorManager () [Inherited From Handler]
  Retrieves the ErrorManager for this Handler.
public Filter getFilter () [Inherited From Handler]
  Get the current Filter for this Handler.
public Formatter getFormatter () [Inherited From Handler]
  Return the Formatter for this Handler.
publicsynchronized Level getLevel () [Inherited From Handler]
  Get the log level specifying which messages will be logged by this Handler.
publicsynchronized Level getPushLevel ()
  Get the pushLevel.
public boolean isLoggable (LogRecord record) [Overrides Handler]
  Check if this Handler would actually log a given LogRecord into its internal buffer.
publicsynchronized void publish (LogRecord record) [Specified in Handler]
  Store a LogRecord in an internal buffer.
publicsynchronized void push ()
  Push any buffered output to the target Handler.
protected void reportError (String msg, Exception ex, int code) [Inherited From Handler]
  Protected convenience method to report an error to this Handler's ErrorManager.
public void setEncoding (String encoding) throws SecurityException UnsupportedEncodingException [Inherited From Handler]
  Set the character encoding used by this Handler.
public void setErrorManager (ErrorManager em) [Inherited From Handler]
  Define an ErrorManager for this Handler.
public void setFilter (Filter newFilter) throws SecurityException [Inherited From Handler]
  Set a Filter to control output on this Handler.
public void setFormatter (Formatter newFormatter) throws SecurityException [Inherited From Handler]
  Set a Formatter.
publicsynchronized void setLevel (Level newLevel) throws SecurityException [Inherited From Handler]
  Set the log level specifying which message levels will be logged by this Handler.
public void setPushLevel (Level newLevel) throws SecurityException
  Set the pushLevel.
Fields
Hide/Show inherited fields
pack-private int count
pack-private boolean sealed [Inherited From Handler]
pack-private int start
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar