Package org.zkoss.zhtml.impl
Class HtmlTreeBuilder
- java.lang.Object
-
- org.zkoss.zhtml.impl.HtmlTreeBuilder
-
- All Implemented Interfaces:
TreeBuilder
public class HtmlTreeBuilder extends java.lang.Object implements TreeBuilder
A HTML tree builder for parsing a content of a page into a idom tree.The default parsing engine is to use zsoup library.
- Since:
- 8.0.0
- Author:
- jumperchen
-
-
Constructor Summary
Constructors Constructor Description HtmlTreeBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Documentparse(java.io.File file)Parse the content of a file to aDocumentDocumentparse(java.io.Reader reader)Parse the content from a Reader to aDocumentDocumentparse(java.net.URL url)Parse the content from a URL to aDocument
-
-
-
Method Detail
-
parse
public Document parse(java.io.File file) throws java.lang.Exception
Description copied from interface:TreeBuilderParse the content of a file to aDocument- Specified by:
parsein interfaceTreeBuilder- Throws:
java.lang.Exception
-
parse
public Document parse(java.net.URL url) throws java.lang.Exception
Description copied from interface:TreeBuilderParse the content from a URL to aDocument- Specified by:
parsein interfaceTreeBuilder- Throws:
java.lang.Exception
-
parse
public Document parse(java.io.Reader reader) throws java.lang.Exception
Description copied from interface:TreeBuilderParse the content from a Reader to aDocument- Specified by:
parsein interfaceTreeBuilder- Throws:
java.lang.Exception
-
-