API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.logging. FileHandler View Source
Author(s)
Since
1.4
Version
1.36, 04/07/06
Serial
Hierarchy
 Object
      Handler
          StreamHandler
              FileHandler
Implements
Subclasses
Description
public class FileHandler
  Simple file logging Handler.
See also:   
Constructors
public FileHandler () throws IOException SecurityException
  Construct a default FileHandler.
public FileHandler (String pattern) throws IOException SecurityException
  Initialize a FileHandler to write to the given filename.
public FileHandler (String pattern, boolean append) throws IOException SecurityException
  Initialize a FileHandler to write to the given filename, with optional append.
public FileHandler (String pattern, int limit, int count) throws IOException SecurityException
  Initialize a FileHandler to write to a set of files.
public FileHandler (String pattern, int limit, int count, boolean append) throws IOException SecurityException
  Initialize a FileHandler to write to a set of files with optional append.
Methods
Hide/Show inherited methods
pack-private void checkAccess () throws SecurityException [Inherited From Handler]
publicsynchronized void close () throws SecurityException [Overrides StreamHandler] [Specified in Handler]
  Close all the files.
publicsynchronized void flush () [Inherited From StreamHandler] [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) [Inherited From StreamHandler]
  Check if this Handler would actually log a given LogRecord.
publicsynchronized void publish (LogRecord record) [Overrides StreamHandler] [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 [Inherited From StreamHandler]
  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 [Inherited From StreamHandler]
  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