API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.logging. SocketHandler View Source
Author(s)
Since
1.4
Version
1.19, 11/17/05
Serial
Hierarchy
 Object
      Handler
          StreamHandler
              SocketHandler
Implements
Subclasses
Description
public class SocketHandler
  Simple network logging Handler.
See also:   
Constructors
public SocketHandler () throws IOException
  Create a SocketHandler, using only LogManager properties (or their defaults).
public SocketHandler (String host, int port) throws IOException
  Construct a SocketHandler using a specified host and port.
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 this output stream.
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