org.jscience.util.logging
Class SocketWriter

java.lang.Object
  extended by org.jscience.util.logging.AbstractLogWriter
      extended by org.jscience.util.logging.SocketWriter
All Implemented Interfaces:
Filter<LogEntry>, LogWriter

public class SocketWriter
extends AbstractLogWriter

simply used to write serialized LogEntry objects via network

See Also:
SocketConnection

Field Summary
static java.lang.String signature
          DOCUMENT ME!
 
Fields inherited from class org.jscience.util.logging.AbstractLogWriter
filter, formatter
 
Constructor Summary
SocketWriter(java.lang.String host, int port)
          Creates a new SocketWriter object.
 
Method Summary
 SocketConnection getSocketConnection()
          DOCUMENT ME!
 void writeLogEntry(java.lang.Object pattern)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.util.logging.AbstractLogWriter
accept, getLogFilter, getLogFormatter, setLogFilter, setLogFormatter, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

signature

public static final java.lang.String signature
DOCUMENT ME!

Constructor Detail

SocketWriter

public SocketWriter(java.lang.String host,
                    int port)
             throws java.io.IOException
Creates a new SocketWriter object.

Parameters:
host - DOCUMENT ME!
port - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!
Method Detail

getSocketConnection

public SocketConnection getSocketConnection()
DOCUMENT ME!

Returns:
DOCUMENT ME!

writeLogEntry

public void writeLogEntry(java.lang.Object pattern)
                   throws LogException
DOCUMENT ME!

Specified by:
writeLogEntry in class AbstractLogWriter
Parameters:
pattern - DOCUMENT ME!
Throws:
LogException - DOCUMENT ME!