API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.logging. StreamHandler View Source
Author(s)
Since
1.4
Version
1.19, 11/17/05
Serial
Hierarchy
 Object
      Handler
          StreamHandler
Implements
Subclasses
Description
public class StreamHandler
  Stream based logging Handler.
See also:   
Constructors
public StreamHandler ()
Create a StreamHandler, with no current output stream.
public StreamHandler (OutputStream out, Formatter formatter)
  Create a StreamHandler with a given Formatter and output stream.
Methods
Hide/Show inherited methods
pack-private void checkAccess () throws SecurityException [Inherited From Handler]
publicsynchronized void close () throws SecurityException [Specified in Handler]
  Close the current output stream.
publicsynchronized void flush () [Specified in Handler]
Flush any buffered messages.
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.
public boolean isLoggable (LogRecord record) [Overrides Handler]
  Check if this Handler would actually log a given LogRecord.
publicsynchronized void publish (LogRecord record) [Specified in Handler]
  Format and publish a LogRecord.
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 [Overrides Handler]
  Set (or change) 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.
protectedsynchronized void setOutputStream (OutputStream out) throws SecurityException
  Change the output stream.
Fields
Hide/Show inherited fields
pack-private boolean sealed [Inherited From Handler]
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar