com.unitesk.atp.text.filters
Class LineSplitFilter
java.lang.Object
com.unitesk.atp.text.filters.Filter
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
Fields inherited from class com.unitesk.atp.text.filters.Filter |
client |
Method Summary |
void |
txt(String s)
Receives a string possible containing line separators. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LineSplitFilter
public LineSplitFilter(TextReceiver client)
- Constructs line split filter.
- Parameters:
client
- the client of this filter
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.