org.netbeans.lib.cvsclient.util
Class Logger

java.lang.Object
  extended by org.netbeans.lib.cvsclient.util.Logger

public final class Logger
extends java.lang.Object

Handles the logging of communication to and from the server


Constructor Summary
Logger()
           
 
Method Summary
static void logInput(byte[] received)
          Log a message received from the server.
static void logInput(byte[] received, int offset, int len)
          Log a message received from the server.
static void logInput(char received)
          Log a character received from the server.
static void logOutput(byte[] sent)
          Log a message sent to the server.
static void setLogging(java.lang.String logPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logger

public Logger()
Method Detail

setLogging

public static void setLogging(java.lang.String logPath)

logInput

public static void logInput(byte[] received)
Log a message received from the server. The message is logged if logging is enabled

Parameters:
received - the data received from the server

logInput

public static void logInput(byte[] received,
                            int offset,
                            int len)
Log a message received from the server. The message is logged if logging is enabled

Parameters:
received - the data received from the server

logInput

public static void logInput(char received)
Log a character received from the server. The message is logged if logging is enabled

Parameters:
received - the data received from the server

logOutput

public static void logOutput(byte[] sent)
Log a message sent to the server. The message is logged if logging is enabled

Parameters:
sent - the data sent to the server

 

Built on October 26 2010.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.