com.ibm.jusb.util
Class NullUsbTracer

java.lang.Object
  extended by com.ibm.jusb.util.UsbTracer
      extended by com.ibm.jusb.util.NullUsbTracer

public class NullUsbTracer
extends UsbTracer

This implementation of UsbTracer does nothing with any trace messages.

Author:
Dan Streetman

Field Summary
 
Fields inherited from class com.ibm.jusb.util.UsbTracer
GLOBAL_TRACER_LEVEL_PROPERTY, GLOBAL_TRACER_NAME_PROPERTY, TRACE_CRITICAL, TRACE_CRITICAL_PROPERTY, TRACE_DEBUG, TRACE_DEBUG_PROPERTY, TRACE_ERROR, TRACE_ERROR_PROPERTY, TRACE_IMPLEMENTATION_PROPERTY, TRACE_INFO, TRACE_INFO_PROPERTY, TRACE_NOTICE, TRACE_NOTICE_PROPERTY, TRACE_WARN, TRACE_WARN_PROPERTY
 
Constructor Summary
NullUsbTracer(java.lang.String name, int level)
          Create a new NullUsbTracer with the specified name and trace level.
 
Method Summary
 void print(java.lang.String name, int level, java.lang.String msg)
          This method does nothing.
 
Methods inherited from class com.ibm.jusb.util.UsbTracer
getDefaultLevel, getDefaultName, getUsbTracer, getUsbTracer, print, print, print, println, println, println, println, setDefaultLevel, setDefaultName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullUsbTracer

public NullUsbTracer(java.lang.String name,
                     int level)
Create a new NullUsbTracer with the specified name and trace level.

Since this class does nothing these parameters don't matter.

Parameters:
name - The default name of this tracer object.
level - The default trace level of this tracer object.
Method Detail

print

public void print(java.lang.String name,
                  int level,
                  java.lang.String msg)
This method does nothing. The trace message is dropped completely.

Specified by:
print in class UsbTracer
Parameters:
name - The name of the trace source.
level - The trace level of the message.
msg - The trace message.