|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objecttextmaven.application.analyzer.TextReader
Reads a ASCII text. Upon reading registered {link ITextHandler} are called on the events specified in the
ITextHandler interface.
| Constructor Summary | |
TextReader()
|
|
| Method Summary | |
protected void |
_process(java.io.Reader in)
Reads specified input. |
void |
addListener(ITextHandler aListener)
Specified listener will receive ITextHandler while reading the document |
void |
process(java.io.InputStream in)
Reads the complete stream, and calls the appropriate methods of all registered ITextHandlers.
|
void |
process(java.io.Reader in)
see process(InputStream). |
void |
removeAllListeners()
Removes all listeners. |
void |
removeListener(ITextHandler aListener)
Removes the specified listener, which will not receive events any further. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TextReader()
| Method Detail |
public void addListener(ITextHandler aListener)
ITextHandler while reading the document
addListener in interface ITextReaderaListener - listener to which events will be passedpublic void removeListener(ITextHandler aListener)
removeListener in interface ITextReaderaListener - listener instance to be removedpublic void removeAllListeners()
removeAllListeners in interface ITextReaderpublic void process(java.io.InputStream in)
ITextHandlers.
This instance does not support the events ITextHandler.endParagraph() and ITextHandler.heading(int, java.lang.String).
process in interface ITextReaderin - input stream to be readpublic void process(java.io.Reader in)
process(InputStream).
process in interface ITextReaderin - reader to be readprotected void _process(java.io.Reader in)
in - reader from which to read
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||