org.exoplatform.services.html.parser
Class HTMLParser

java.lang.Object
  extended by org.exoplatform.services.html.parser.HTMLParser

public final class HTMLParser
extends java.lang.Object

Author:
nhuthuan Email: nhudinhthuan@yahoo.com

Constructor Summary
HTMLParser()
           
 
Method Summary
static HTMLNode clone(HTMLNode node)
           
static HTMLDocument createDocument(byte[] data, java.lang.String charset)
           
static HTMLDocument createDocument(char[] data)
           
static HTMLDocument createDocument(java.io.File file, java.lang.String charset)
           
static HTMLDocument createDocument(java.io.InputStream input, java.lang.String charset)
           
static HTMLDocument createDocument(java.lang.String text)
           
static java.lang.String detect(byte[] buf)
           
static java.lang.String getCharset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLParser

public HTMLParser()
Method Detail

clone

public static HTMLNode clone(HTMLNode node)

createDocument

public static HTMLDocument createDocument(char[] data)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

createDocument

public static HTMLDocument createDocument(java.lang.String text)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

createDocument

public static HTMLDocument createDocument(byte[] data,
                                          java.lang.String charset)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

createDocument

public static HTMLDocument createDocument(java.io.InputStream input,
                                          java.lang.String charset)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

createDocument

public static HTMLDocument createDocument(java.io.File file,
                                          java.lang.String charset)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

detect

public static java.lang.String detect(byte[] buf)

getCharset

public static java.lang.String getCharset()


Copyright © 2011 eXo Platform SAS. All Rights Reserved.