Class org.jfouffa.parser.html.DocumentParser
java.lang.Object
|
+----org.jfouffa.parser.html.Parser
|
+----org.jfouffa.parser.html.DocumentParser
- public class DocumentParser
- extends Parser
This is a hybrid parser for HTML document.
Constructor index
-
DocumentParser()
- Create a new MLParser.
-
DocumentParser(int)
- Create a new MLParser with a number of listeners.
Method index
-
addListener(DocumentListener)
- Add a listener to this parser.
-
parseDocument(URL, Reader)
- Parse a document from an URL in a stream.
Constructors
DocumentParser
public DocumentParser()
- Create a new MLParser.
DocumentParser
public DocumentParser(int nbrListeners)
- Create a new MLParser with a number of listeners.
- Parameters:
- nbrListeners - Number of listeners
Methods
addListener
public void addListener(DocumentListener listener)
- Add a listener to this parser.
- Parameters:
- listener - The DocumentListener
parseDocument
public void parseDocument(URL location,
Reader reader) throws IOException, ParseException
- Parse a document from an URL in a stream.
- Parameters:
- location - The URL location of the document.
- reader - The stream where the parser should read
the document.
- Throws: IOException
- An I/O exception occurs during parse
- Throws: ParseException
- An error appears during parse