|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface which provides parsing capabilities. Classes implementing this interface should be specialized to parse a specific type of document, such as HTML, TXT, .DOC, .PDF, etc. Created on Jan 23, 2004
| Method Summary | |
void |
addParsingListener(ParsingListener listener)
Registers a new ParsingListener for this document parser |
void |
parseDocument(int docID,
java.io.Reader documentReader)
Initiates the parsing of a document. |
void |
removeParsingListener(ParsingListener listener)
Removes a parsing listener from this document parser |
void |
setParameter(java.lang.String name,
java.lang.Object value)
Sets a parameter for this DocumentParser. |
| Method Detail |
public void setParameter(java.lang.String name,
java.lang.Object value)
throws InvalidParameterException
name - value - InvalidParameterException - if the parameter is not supported or
is specified incorrectlypublic void addParsingListener(ParsingListener listener)
listener - The listener to be registeredpublic void removeParsingListener(ParsingListener listener)
listener - the listener to be removed.
public void parseDocument(int docID,
java.io.Reader documentReader)
throws java.io.IOException
docID - The numeric ID of this documentdocument - The Reader for the document to be parsed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||