Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.utilities.xml
Class HTMLUtil

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.utilities.xml.HTMLUtil

public final class HTMLUtil
extends Object

Class with HTML related utility functions.

Author:
Erich Schubert

Field Summary
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 Summary
HTMLUtil()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTML_NAMESPACE

public static final String HTML_NAMESPACE
HTML namespace

See Also:
Constant Field Values

HTML_XHTML_TRANSITIONAL_DOCTYPE_PUBLIC

public static final String HTML_XHTML_TRANSITIONAL_DOCTYPE_PUBLIC
XHTML PUBLIC doctype

See Also:
Constant Field Values

HTML_XHTML_TRANSITIONAL_DOCTYPE_SYSTEM

public static final String HTML_XHTML_TRANSITIONAL_DOCTYPE_SYSTEM
XHTML SYSTEM doctype

See Also:
Constant Field Values

HTML_HTML_TAG

public static final String HTML_HTML_TAG
HTML root element

See Also:
Constant Field Values

HTML_HEAD_TAG

public static final String HTML_HEAD_TAG
HTML head element

See Also:
Constant Field Values

HTML_TITLE_TAG

public static final String HTML_TITLE_TAG
HTML title element

See Also:
Constant Field Values

HTML_BODY_TAG

public static final String HTML_BODY_TAG
HTML body element

See Also:
Constant Field Values

HTML_DL_TAG

public static final String HTML_DL_TAG
HTML dl element

See Also:
Constant Field Values

HTML_DT_TAG

public static final String HTML_DT_TAG
HTML dt element

See Also:
Constant Field Values

HTML_DD_TAG

public static final String HTML_DD_TAG
HTML dd element

See Also:
Constant Field Values

HTML_UL_TAG

public static final String HTML_UL_TAG
HTML unordered list tag

See Also:
Constant Field Values

HTML_OL_TAG

public static final String HTML_OL_TAG
HTML ordered list tag

See Also:
Constant Field Values

HTML_LI_TAG

public static final String HTML_LI_TAG
HTML list item tag

See Also:
Constant Field Values

HTML_EM_TAG

public static final String HTML_EM_TAG
HTML em element

See Also:
Constant Field Values

HTML_I_TAG

public static final String HTML_I_TAG
HTML i element

See Also:
Constant Field Values

HTML_STRONG_TAG

public static final String HTML_STRONG_TAG
HTML strong element

See Also:
Constant Field Values

HTML_B_TAG

public static final String HTML_B_TAG
HTML b element

See Also:
Constant Field Values

HTML_TT_TAG

public static final String HTML_TT_TAG
HTML tt element

See Also:
Constant Field Values

HTML_BR_TAG

public static final String HTML_BR_TAG
HTML br element

See Also:
Constant Field Values

HTML_H1_TAG

public static final String HTML_H1_TAG
HTML h1 element

See Also:
Constant Field Values

HTML_A_TAG

public static final String HTML_A_TAG
HTML a element

See Also:
Constant Field Values

HTML_P_TAG

public static final String HTML_P_TAG
HTML p element

See Also:
Constant Field Values

HTML_DIV_TAG

public static final String HTML_DIV_TAG
HTML div element

See Also:
Constant Field Values

HTML_SPAN_TAG

public static final String HTML_SPAN_TAG
HTML span element

See Also:
Constant Field Values

HTML_IMG_TAG

public static final String HTML_IMG_TAG
HTML img element

See Also:
Constant Field Values

HTML_META_TAG

public static final String HTML_META_TAG
HTML meta element

See Also:
Constant Field Values

HTML_LINK_TAG

public static final String HTML_LINK_TAG
HTML link element

See Also:
Constant Field Values

HTML_HREF_ATTRIBUTE

public static final String HTML_HREF_ATTRIBUTE
HTML href attribute (a, link tags)

See Also:
Constant Field Values

HTML_SRC_ATTRIBUTE

public static final String HTML_SRC_ATTRIBUTE
HTML src attribute (img tag)

See Also:
Constant Field Values

HTML_STYLE_ATTRIBUTE

public static final String HTML_STYLE_ATTRIBUTE
HTML style attribute

See Also:
Constant Field Values

HTML_CLASS_ATTRIBUTE

public static final String HTML_CLASS_ATTRIBUTE
HTML class attribute

See Also:
Constant Field Values

HTML_NAME_ATTRIBUTE

public static final String HTML_NAME_ATTRIBUTE
HTML name attribute (e.g. A tag)

See Also:
Constant Field Values

HTML_TYPE_ATTRIBUTE

public static final String HTML_TYPE_ATTRIBUTE
HTML type attribute (link tag)

See Also:
Constant Field Values

HTML_REL_ATTRIBUTE

public static final String HTML_REL_ATTRIBUTE
HTML rel attribute (link tag)

See Also:
Constant Field Values

HTML_REL_STYLESHEET

public static final String HTML_REL_STYLESHEET
HTML rel value for stylesheets

See Also:
Constant Field Values

HTML_HTTP_EQUIV_ATTRIBUTE

public static final String HTML_HTTP_EQUIV_ATTRIBUTE
HTML http-equiv attribute (meta tag)

See Also:
Constant Field Values

HTML_CONTENT_ATTRIBUTE

public static final String HTML_CONTENT_ATTRIBUTE
HTML content attribute (meta tag)

See Also:
Constant Field Values

HTML_HTTP_EQUIV_CONTENT_TYPE

public static final String HTML_HTTP_EQUIV_CONTENT_TYPE
HTML http-equiv value Content-type

See Also:
Constant Field Values

CONTENT_TYPE_HTML

public static final String CONTENT_TYPE_HTML
HTML content type

See Also:
Constant Field Values

CONTENT_TYPE_CSS

public static final String CONTENT_TYPE_CSS
CSS content type

See Also:
Constant Field Values

CONTENT_TYPE_HTML_UTF8

public static final String CONTENT_TYPE_HTML_UTF8
HTML content type with UTF-8 indication

See Also:
Constant Field Values
Constructor Detail

HTMLUtil

public HTMLUtil()
Method Detail

writeXHTML

public static void writeXHTML(Document htmldoc,
                              OutputStream out)
                       throws IOException,
                              Error
Throws:
IOException
Error

appendMultilineText

public static void appendMultilineText(Document htmldoc,
                                       Element parent,
                                       String text)
Append a multiline text to a node, transforming linewraps into BR tags.

Parameters:
htmldoc - Document
parent - Parent node
text - Text to add.

Release 0.2.1 (2009-07-13_1605)