gnu.kawa.ant
Class LineStripperSet

java.lang.Object
  extended by FilterSet
      extended by gnu.kawa.ant.LineStripperSet

public class LineStripperSet
extends FilterSet


Nested Class Summary
static class LineStripperSet.LineStripper
          Individual filter component of filterset
 
Constructor Summary
LineStripperSet()
           
 
Method Summary
 void addLineStripper(LineStripperSet.LineStripper stripper)
          Create a new filter
 java.util.Hashtable getStripperHash()
          Gets the filter hash of the FilterSet.
 java.lang.String replaceTokens(java.lang.String line)
          Does replacement on the given string with token matching.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineStripperSet

public LineStripperSet()
Method Detail

getStripperHash

public java.util.Hashtable getStripperHash()
Gets the filter hash of the FilterSet.

Returns:
The hash of the tokens and values for quick lookup.

replaceTokens

public java.lang.String replaceTokens(java.lang.String line)
Does replacement on the given string with token matching. This uses the defined begintoken and endtoken values which default to @ for both.

Parameters:
line - The line to process the tokens in.
Returns:
The string with the tokens replaced.

addLineStripper

public void addLineStripper(LineStripperSet.LineStripper stripper)
Create a new filter

Parameters:
stripper - the filter to be added