public final class HTMLUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_TYPE_CSS
CSS content type
|
static String |
CONTENT_TYPE_HTML
HTML content type
|
static String |
CONTENT_TYPE_HTML_UTF8
HTML content type with UTF-8 indication
|
static String |
HTML_A_TAG
HTML a element
|
static String |
HTML_B_TAG
HTML b element
|
static String |
HTML_BODY_TAG
HTML body element
|
static String |
HTML_BR_TAG
HTML br element
|
static String |
HTML_CLASS_ATTRIBUTE
HTML class attribute
|
static String |
HTML_CONTENT_ATTRIBUTE
HTML content attribute (meta tag)
|
static String |
HTML_DD_TAG
HTML dd element
|
static String |
HTML_DIV_TAG
HTML div element
|
static String |
HTML_DL_TAG
HTML dl element
|
static String |
HTML_DT_TAG
HTML dt element
|
static String |
HTML_EM_TAG
HTML em element
|
static String |
HTML_H1_TAG
HTML h1 element
|
static String |
HTML_HEAD_TAG
HTML head element
|
static String |
HTML_HREF_ATTRIBUTE
HTML href attribute (a, link tags)
|
static String |
HTML_HTML_TAG
HTML root element
|
static String |
HTML_HTTP_EQUIV_ATTRIBUTE
HTML http-equiv attribute (meta tag)
|
static String |
HTML_HTTP_EQUIV_CONTENT_TYPE
HTML http-equiv value Content-type
|
static String |
HTML_I_TAG
HTML i element
|
static String |
HTML_IMG_TAG
HTML img element
|
static String |
HTML_LI_TAG
HTML list item tag
|
static String |
HTML_LINK_TAG
HTML link element
|
static String |
HTML_META_TAG
HTML meta element
|
static String |
HTML_NAME_ATTRIBUTE
HTML name attribute (e.g.
|
static String |
HTML_NAMESPACE
HTML namespace
|
static String |
HTML_OL_TAG
HTML ordered list tag
|
static String |
HTML_P_TAG
HTML p element
|
static String |
HTML_REL_ATTRIBUTE
HTML rel attribute (link tag)
|
static String |
HTML_REL_STYLESHEET
HTML rel value for stylesheets
|
static String |
HTML_SPAN_TAG
HTML span element
|
static String |
HTML_SRC_ATTRIBUTE
HTML src attribute (img tag)
|
static String |
HTML_STRONG_TAG
HTML strong element
|
static String |
HTML_STYLE_ATTRIBUTE
HTML style attribute
|
static String |
HTML_TITLE_TAG
HTML title element
|
static String |
HTML_TT_TAG
HTML tt element
|
static String |
HTML_TYPE_ATTRIBUTE
HTML type attribute (link tag)
|
static String |
HTML_UL_TAG
HTML unordered list tag
|
static String |
HTML_XHTML_TRANSITIONAL_DOCTYPE_PUBLIC
XHTML PUBLIC doctype
|
static String |
HTML_XHTML_TRANSITIONAL_DOCTYPE_SYSTEM
XHTML SYSTEM doctype
|
Constructor and Description |
---|
HTMLUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
appendMultilineText(Document htmldoc,
Element parent,
String text)
Append a multiline text to a node, transforming linewraps into BR tags.
|
static void |
writeXHTML(Document htmldoc,
OutputStream out)
Write an HTML document to an output stream.
|
public static final String HTML_NAMESPACE
public static final String HTML_XHTML_TRANSITIONAL_DOCTYPE_PUBLIC
public static final String HTML_XHTML_TRANSITIONAL_DOCTYPE_SYSTEM
public static final String HTML_HTML_TAG
public static final String HTML_HEAD_TAG
public static final String HTML_TITLE_TAG
public static final String HTML_BODY_TAG
public static final String HTML_DL_TAG
public static final String HTML_DT_TAG
public static final String HTML_DD_TAG
public static final String HTML_UL_TAG
public static final String HTML_OL_TAG
public static final String HTML_LI_TAG
public static final String HTML_EM_TAG
public static final String HTML_I_TAG
public static final String HTML_STRONG_TAG
public static final String HTML_B_TAG
public static final String HTML_TT_TAG
public static final String HTML_BR_TAG
public static final String HTML_H1_TAG
public static final String HTML_A_TAG
public static final String HTML_P_TAG
public static final String HTML_DIV_TAG
public static final String HTML_SPAN_TAG
public static final String HTML_IMG_TAG
public static final String HTML_META_TAG
public static final String HTML_LINK_TAG
public static final String HTML_HREF_ATTRIBUTE
public static final String HTML_SRC_ATTRIBUTE
public static final String HTML_STYLE_ATTRIBUTE
public static final String HTML_CLASS_ATTRIBUTE
public static final String HTML_NAME_ATTRIBUTE
public static final String HTML_TYPE_ATTRIBUTE
public static final String HTML_REL_ATTRIBUTE
public static final String HTML_REL_STYLESHEET
public static final String HTML_HTTP_EQUIV_ATTRIBUTE
public static final String HTML_CONTENT_ATTRIBUTE
public static final String HTML_HTTP_EQUIV_CONTENT_TYPE
public static final String CONTENT_TYPE_HTML
public static final String CONTENT_TYPE_CSS
public static final String CONTENT_TYPE_HTML_UTF8
public static void writeXHTML(Document htmldoc, OutputStream out) throws IOException
htmldoc
- Document to outputout
- Stream to write toIOException
- thrown on IO errors