Package com.lowagie.text.html
Class HtmlParser
java.lang.Object
com.lowagie.text.xml.XmlParser
com.lowagie.text.html.HtmlParser
This class can be used to parse some HTML files.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgo(DocListener document, InputStream is) Parses a given file.voidgo(DocListener document, Reader is) Parses a given file.voidgo(DocListener document, String file) Parses a given file.voidgo(DocListener document, InputSource is) Parses a given file.static voidparse(DocListener document, InputStream is) Parses a given file that validates with the iText DTD and writes the content to a document.static voidparse(DocListener document, Reader is) Parses a given file that validates with the iText DTD and writes the content to a document.static voidparse(DocListener document, String file) Parses a given file that validates with the iText DTD and writes the content to a document.static voidparse(DocListener document, InputSource is) Parses a given file that validates with the iText DTD and writes the content to a document.
-
Constructor Details
-
HtmlParser
public HtmlParser()Constructs an HtmlParser.
-
-
Method Details
-
go
Parses a given file. -
parse
Parses a given file that validates with the iText DTD and writes the content to a document.- Parameters:
document- the document the parser will write tois- the InputSource with the content
-
go
Parses a given file. -
parse
Parses a given file that validates with the iText DTD and writes the content to a document.- Parameters:
document- the document the parser will write tofile- the file with the content
-
go
Parses a given file.- Parameters:
document- the document the parser will write tois- the InputStream with the content
-
parse
Parses a given file that validates with the iText DTD and writes the content to a document.- Parameters:
document- the document the parser will write tois- the InputStream with the content
-
go
Parses a given file.- Parameters:
document- the document the parser will write tois- the Reader with the content
-
parse
Parses a given file that validates with the iText DTD and writes the content to a document.- Parameters:
document- the document the parser will write tois- the Reader with the content
-