edu.berkeley.guir.lib.io
Class DebugFilter
java.lang.Object
|
+--edu.berkeley.guir.lib.io.Filter
|
+--edu.berkeley.guir.lib.io.DebugFilter
- public class DebugFilter
- extends Filter
A filter to be used with the Pipe class. Prints out all data transferred
through this filter.
This software is distributed under the
Berkeley Software License.
Revisions: - GUIRLib-v1.0-1.0.0, Jun 16 1998, JH
Created class
- GUIRLib-v1.2-1.0.0, Jun 22 2000, JH
Touched for GUIRLib release
- GUIRLib-v1.3-1.0.0, Aug 11 2000, JH
Touched for GUIRLib release
- GUIRLib-v1.4-1.0.0, Aug 31 2000, JH
Touched for GUIRLib release
- Since:
- JDK 1.1.6
- Version:
- GUIRLib-v1.4-1.0.0, Aug 31 2000
- Author:
- Jason Hong (
jasonh@cs.berkeley.edu )
Constructor Summary |
DebugFilter()
Create a filter. |
DebugFilter(String strPrefix)
Create a filter that prints out the specified String on every new packet
received. |
Method Summary |
void |
filter(DataBuffer databuf)
Filters specified characters out. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DebugFilter
public DebugFilter()
- Create a filter.
DebugFilter
public DebugFilter(String strPrefix)
- Create a filter that prints out the specified String on every new packet
received.
- Parameters:
strPrefix
- is the string to print out.
filter
public void filter(DataBuffer databuf)
- Filters specified characters out.
- Overrides:
filter
in class Filter
- Parameters:
databuf
- contains the data.