com.lowagie.text.html

Class HtmlParser

public class HtmlParser extends XmlParser

This class can be used to parse some HTML files.
Constructor Summary
HtmlParser()
Constructs an HtmlParser.
Method Summary
voidgo(DocListener document, InputSource is)
Parses a given file.
voidgo(DocListener document, String file)
Parses a given file.
voidgo(DocListener document, InputStream is)
Parses a given file.
voidgo(DocListener document, Reader is)
Parses a given file.
static voidparse(DocListener document, InputSource 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, 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.

Constructor Detail

HtmlParser

public HtmlParser()
Constructs an HtmlParser.

Method Detail

go

public void go(DocListener document, InputSource is)
Parses a given file.

Parameters: document the document the parser will write to is the InputSource with the content

go

public void go(DocListener document, String file)
Parses a given file.

Parameters: document the document the parser will write to file the file with the content

go

public void go(DocListener document, InputStream is)
Parses a given file.

Parameters: document the document the parser will write to is the InputStream with the content

go

public void go(DocListener document, Reader is)
Parses a given file.

Parameters: document the document the parser will write to is the Reader with the content

parse

public static void parse(DocListener document, InputSource is)
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 to is the InputSource with the content

parse

public static void parse(DocListener document, String file)
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 to file the file with the content

parse

public static void parse(DocListener document, InputStream is)
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 to is the InputStream with the content

parse

public static void parse(DocListener document, Reader is)
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 to is the Reader with the content