com.unitesk.atp.text.filters
Class LineSplitFilter

java.lang.Object
  extended by com.unitesk.atp.text.filters.Filter
      extended by com.unitesk.atp.text.filters.LineSplitFilter
All Implemented Interfaces:
TextReceiver

public class LineSplitFilter
extends Filter

The filter that receives strings containing line separators splits them into strings without line separators and line separatos and passes all to the client.

Version:
$Id: LineSplitFilter.java,v 1.1 2004/10/09 06:36:40 all-x Exp $
Author:
Alexey Demakov

Field Summary
 
Fields inherited from class com.unitesk.atp.text.filters.Filter
client
 
Constructor Summary
LineSplitFilter(TextReceiver client)
          Constructs line split filter.
 
Method Summary
 void txt(String s)
          Receives a string possible containing line separators.
 
Methods inherited from class com.unitesk.atp.text.filters.Filter
getClient, nl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineSplitFilter

public LineSplitFilter(TextReceiver client)
Constructs line split filter.

Parameters:
client - the client of this filter
Method Detail

txt

public void txt(String s)
Receives a string possible containing line separators. Splits it to strings without line separators and line separators and passes them to the client.

Specified by:
txt in interface TextReceiver
Overrides:
txt in class Filter
Parameters:
s - the string to split
Throws:
NullPointerException - if s is null


Copyright © 2001-2006 ISP RAS, RedVerst Group. All Rights Reserved.