public class DemoHTMLParser extends java.lang.Object implements HTMLParser
Constructor and Description |
---|
DemoHTMLParser() |
public DocData parse(DocData docData, java.lang.String name, java.util.Date date, java.lang.String title, java.io.Reader reader, java.text.DateFormat dateFormat) throws java.io.IOException, java.lang.InterruptedException
HTMLParser
parse
in interface HTMLParser
docData
- result reusedname
- name of the result doc data.date
- date of the result doc data. If null, attempt to set by parsed data.title
- title of the result doc data. If null, attempt to set by parsed data.reader
- reader of html text to parse.dateFormat
- date formatter to use for extracting the date.java.io.IOException
java.lang.InterruptedException