|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object textmaven.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 ITextHandler s.
|
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 ITextReader
aListener
- listener to which events will be passedpublic void removeListener(ITextHandler aListener)
removeListener
in interface ITextReader
aListener
- listener instance to be removedpublic void removeAllListeners()
removeAllListeners
in interface ITextReader
public void process(java.io.InputStream in)
ITextHandler
s.
This instance does not support the events ITextHandler.endParagraph()
and ITextHandler.heading(int, java.lang.String)
.
process
in interface ITextReader
in
- input stream to be readpublic void process(java.io.Reader in)
process(InputStream)
.
process
in interface ITextReader
in
- 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 |