UC Berkeley Group for User Interface Research
Updated November 17, 2000

edu.berkeley.guir.lib.io
Class CharacterFilter

java.lang.Object
  |
  +--edu.berkeley.guir.lib.io.Filter
        |
        +--edu.berkeley.guir.lib.io.CharacterFilter

public class CharacterFilter
extends Filter

A Filter to be used with the Pipe class. Filters specified characters out.

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
CharacterFilter()
           
 
Method Summary
 void accept(int val)
          Do not filter out this value.
 void accept(int low, int high)
          Do not filter out these values.
 void filter(DataBuffer databuf)
          Filters specified characters out.
 void reject(int val)
          Filter out this value.
 void reject(int low, int high)
          Filter out these values.
 
Methods inherited from class edu.berkeley.guir.lib.io.Filter
onFinishStream, onStartStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharacterFilter

public CharacterFilter()
Method Detail

filter

public void filter(DataBuffer databuf)
Filters specified characters out.
Overrides:
filter in class Filter
Parameters:
databuf - contains the data.

accept

public void accept(int val)
Do not filter out this value.
Parameters:
val - is the value to filter out.

accept

public void accept(int low,
                   int high)
Do not filter out these values.
Parameters:
low - is the low end of the values to accept.
high - is the high end of the values to accept.

reject

public void reject(int val)
Filter out this value.
Parameters:
val - is the value to filter out.

reject

public void reject(int low,
                   int high)
Filter out these values.
Parameters:
low - is the low end of the values to accept.
high - is the high end of the values to accept.

Copyright Information