public interface HtmlTreeParser
A parser that generates a tree of HtmlElements. It always returns the root node of the tree. Specific elements can be matched and easily traversed using HtmlElement.query() or HtmlElement.query(String)
| Modifier and Type | Method and Description |
|---|---|
HtmlElement |
parseTree(File file)
Generates a HTML tree from the input made available by a
File. |
HtmlElement |
parseTree(File file,
Charset encoding)
Generates a HTML tree from the input made available by a
File. |
HtmlElement |
parseTree(com.univocity.api.io.FileProvider fileProvider)
Generates a HTML tree from the input made available by a
FileProvider. |
HtmlElement |
parseTree(File file,
String encoding)
Generates a HTML tree from the input made available by a
File. |
HtmlElement |
parseTree(InputStream inputStream)
Generates a HTML tree from the input made available by a
InputStream. |
HtmlElement |
parseTree(InputStream inputStream,
Charset encoding)
Generates a HTML tree from the input made available by a
InputStream. |
HtmlElement |
parseTree(InputStream inputStream,
String encoding)
Generates a HTML tree from the input made available by a
InputStream. |
HtmlElement |
parseTree(Reader reader)
Generates a HTML tree from the input made available by a
Reader. |
HtmlElement |
parseTree(com.univocity.api.io.ReaderProvider readerProvider)
Generates a HTML tree from the input made available by a
ReaderProvider. |
HtmlElement parseTree(com.univocity.api.io.ReaderProvider readerProvider)
Generates a HTML tree from the input made available by a ReaderProvider. Users can navigate the HTML tree and use CSS selectors against the HtmlElements returned to target any specific HTML node.
readerProvider - an input provider with content to be parsedHtmlElement of the entire HTML document.HtmlElement parseTree(com.univocity.api.io.FileProvider fileProvider)
Generates a HTML tree from the input made available by a FileProvider. Users can navigate the HTML tree and use CSS selectors against the HtmlElements returned to target any specific HTML node.
fileProvider - the input file with content to be parsedHtmlElement of the entire HTML document.HtmlElement parseTree(Reader reader)
Generates a HTML tree from the input made available by a Reader. Users can navigate the HTML tree and use CSS selectors against the HtmlElements returned to target any specific HTML node.
reader - the input with content to be parsedHtmlElement of the entire HTML document.HtmlElement parseTree(InputStream inputStream)
Generates a HTML tree from the input made available by a InputStream. Users can navigate the HTML tree and use CSS selectors against the HtmlElements returned to target any specific HTML node.
inputStream - the input with content to be parsedHtmlElement of the entire HTML document.HtmlElement parseTree(InputStream inputStream, Charset encoding)
Generates a HTML tree from the input made available by a InputStream. Users can navigate the HTML tree and use CSS selectors against the HtmlElements returned to target any specific HTML node.
inputStream - the input with content to be parsedencoding - the encoding to be used when reading text from the given input.HtmlElement of the entire HTML document.HtmlElement parseTree(InputStream inputStream, String encoding)
Generates a HTML tree from the input made available by a InputStream. Users can navigate the HTML tree and use CSS selectors against the HtmlElements returned to target any specific HTML node.
inputStream - the input with content to be parsedencoding - the encoding to be used when reading text from the given input.HtmlElement of the entire HTML document.HtmlElement parseTree(File file)
Generates a HTML tree from the input made available by a File. Users can navigate the HTML tree and use CSS selectors against the HtmlElements returned to target any specific HTML node.
file - the input with content to be parsedHtmlElement of the entire HTML document.HtmlElement parseTree(File file, Charset encoding)
Generates a HTML tree from the input made available by a File. Users can navigate the HTML tree and use CSS selectors against the HtmlElements returned to target any specific HTML node.
file - the input with content to be parsedencoding - the encoding to be used when reading text from the given input.HtmlElement of the entire HTML document.HtmlElement parseTree(File file, String encoding)
Generates a HTML tree from the input made available by a File. Users can navigate the HTML tree and use CSS selectors against the HtmlElements returned to target any specific HTML node.
file - the input with content to be parsedencoding - the encoding to be used when reading text from the given input.HtmlElement of the entire HTML document.Copyright © 2018 uniVocity Software Pty Ltd. All rights reserved.