org.zkoss.zhtml.impl
Class HtmlTreeBuilder

java.lang.Object
  extended by 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
HtmlTreeBuilder()
           
 
Method Summary
 Document parse(java.io.File file)
          Parse the content of a file to a Document
 Document parse(java.io.Reader reader)
          Parse the content from a Reader to a Document
 Document parse(java.net.URL url)
          Parse the content from a URL to a Document
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlTreeBuilder

public HtmlTreeBuilder()
Method Detail

parse

public Document parse(java.io.File file)
               throws java.lang.Exception
Description copied from interface: TreeBuilder
Parse the content of a file to a Document

Specified by:
parse in interface TreeBuilder
Throws:
java.lang.Exception

parse

public Document parse(java.net.URL url)
               throws java.lang.Exception
Description copied from interface: TreeBuilder
Parse the content from a URL to a Document

Specified by:
parse in interface TreeBuilder
Throws:
java.lang.Exception

parse

public Document parse(java.io.Reader reader)
               throws java.lang.Exception
Description copied from interface: TreeBuilder
Parse the content from a Reader to a Document

Specified by:
parse in interface TreeBuilder
Throws:
java.lang.Exception


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo