public final class Html extends Object
<html/> element in the http://jabber.org/protocol/xhtml-im namespace.
This class is immutable.
| Modifier and Type | Field and Description |
|---|---|
static String |
NAMESPACE
http://jabber.org/protocol/xhtml-im
|
| Constructor and Description |
|---|
Html(Document document)
Creates an empty HTML document with an empty body.
|
Html(String xhtmlContent)
Creates an HTML document from a string source (body).
|
| Modifier and Type | Method and Description |
|---|---|
Element |
getBody()
Gets the body of this XHTML document.
|
String |
getContent()
Gets XHTML content of the body, i.e. the content between the
<body></body> element. |
String |
toString() |
public static final String NAMESPACE
public Html(Document document)
document - The document.getBody()public Html(String xhtmlContent) throws SAXException
xhtmlContent - The body element as string, e.g. <p>Hi</p>.SAXException - If the input string could not be parsed.getContent()public final Element getBody()
public final String getContent()
<body></body> element.Copyright © 2014–2018 XMPP.rocks. All rights reserved.