public class PresContentParser
extends java.lang.Object
Constructor and Description |
---|
PresContentParser() |
Modifier and Type | Method and Description |
---|---|
static ContentType |
fromXml(java.lang.String xml)
Creates xcap-caps object from the element.
|
static java.lang.String |
toXml(ContentType content)
Creates XML from the pres-content element.
|
public static ContentType fromXml(java.lang.String xml) throws ParsingException
xml
- the XML to analyze.ParsingException
- if there is some error during parsing.public static java.lang.String toXml(ContentType content) throws ParsingException
content
- the pres-content to analyze.ParsingException
- if there is some error during parsing.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.