|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.unitesk.atp.text.filters.Filter
public class Filter
Text filter receives portion of text, processes it and emit results to
client.
Text filter can be client of other filter so filters can be combined in chain to perform
complicated text processing.
| Field Summary | |
|---|---|
protected TextReceiver |
client
|
| Constructor Summary | |
|---|---|
Filter(TextReceiver client)
Constructs text filter with the specified client. |
|
| Method Summary | |
|---|---|
TextReceiver |
getClient()
Gets the client of this filter. |
void |
nl()
The default implementation passes line separator to the client without any changes. |
void |
txt(String s)
The default implementation passes input string to the client without any changes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TextReceiver client
| Constructor Detail |
|---|
public Filter(TextReceiver client)
client - The client of this filter.
NullPointerException - If client is null.| Method Detail |
|---|
public TextReceiver getClient()
public void txt(String s)
txt in interface TextReceivers - The string to process.public void nl()
nl in interface TextReceiver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||