| java.lang.Object com.sun.portal.wireless.htmlconversion.HtmlConverter
HtmlConverter | public class HtmlConverter (Code) | | Public API for this package that converts HTML input to AML output.
author: ashwin.mathew@sun.com |
Field Summary | |
final public static int | DOCUMENT_TYPE_HTML Force transformation of the document as HTML. | final public static int | DOCUMENT_TYPE_UNKNOWN Unknown whether the document is HTML or XHTML, the API will try to
determine the document type. | final public static int | DOCUMENT_TYPE_XHTML Force transformation of the document as XHTML. |
Constructor Summary | |
public | HtmlConverter(String input, boolean isFragment) Constructs a new HtmlConverter which tries to determine the document type
itself. | public | HtmlConverter(String input, boolean isFragment, int documentType) Constructs a new HtmlConverter for the specified document type. |
DOCUMENT_TYPE_HTML | final public static int DOCUMENT_TYPE_HTML(Code) | | Force transformation of the document as HTML.
|
DOCUMENT_TYPE_UNKNOWN | final public static int DOCUMENT_TYPE_UNKNOWN(Code) | | Unknown whether the document is HTML or XHTML, the API will try to
determine the document type.
|
DOCUMENT_TYPE_XHTML | final public static int DOCUMENT_TYPE_XHTML(Code) | | Force transformation of the document as XHTML.
|
HtmlConverter | public HtmlConverter(String input, boolean isFragment) throws HtmlConversionException(Code) | | Constructs a new HtmlConverter which tries to determine the document type
itself.
Parameters: input - The input HTML content to be transformed. Parameters: isFragment - Whether or not the output AML content is a whole AML page(with AmlDocument and AmlPage tags) or is just a fragment ofAML to be embedded on a larger AML page. |
HtmlConverter | public HtmlConverter(String input, boolean isFragment, int documentType) throws HtmlConversionException(Code) | | Constructs a new HtmlConverter for the specified document type.
Parameters: input - The input HTML content to be transformed. Parameters: isFragment - Whether or not the output AML content is a whole AML page(with AmlDocument and AmlPage tags) or is just a fragment ofAML to be embedded on a larger AML page. Parameters: documentType - The type of the document, HTML, XHTML or unknown, must be oneof the DOCUMENT_TYPE_* constants defined on this class. |
|
|