|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.utils.xml.XmlHelper
public final class XmlHelper
The Class XmlHelper.
| Field Summary | |
|---|---|
static javax.xml.parsers.DocumentBuilderFactory |
BUILDING_FACTORY
The BUILDING factory. |
static javax.xml.transform.TransformerFactory |
TRANSFORMER_FACTORY
The Constant TRANSFORMER_FACTORY. |
static java.lang.String |
XML_HEADER_UTF8
The Constant XML_HEADER_UTF8. |
| Method Summary | |
|---|---|
static org.w3c.dom.Element |
createElement(org.w3c.dom.Node parent,
java.lang.String nodeName)
Creates the element. |
static org.w3c.dom.Text |
createText(org.w3c.dom.Node parent,
java.lang.String text)
Creates the text. |
static org.w3c.dom.Document |
newDocument()
New document. |
static org.w3c.dom.Document |
newDocument(java.lang.String rootName)
New document. |
static org.w3c.dom.Document |
parse(byte[] input)
Parses the. |
static org.w3c.dom.Document |
parse(java.lang.String input)
Parses the. |
static byte[] |
toByteArray(org.w3c.dom.Document document)
To byte array. |
static java.lang.String |
toString(org.w3c.dom.Document document)
To string. |
static java.lang.String |
toString(org.w3c.dom.Document document,
boolean xmlDeclaration)
To string. |
static void |
transform(org.w3c.dom.Document document,
javax.xml.transform.stream.StreamResult streamResult,
boolean xmlDeclaration)
Transform. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final javax.xml.parsers.DocumentBuilderFactory BUILDING_FACTORY
public static final javax.xml.transform.TransformerFactory TRANSFORMER_FACTORY
public static final java.lang.String XML_HEADER_UTF8
| Method Detail |
|---|
public static java.lang.String toString(org.w3c.dom.Document document)
document - the document
public static java.lang.String toString(org.w3c.dom.Document document,
boolean xmlDeclaration)
document - the documentxmlDeclaration - the xml declaration
public static byte[] toByteArray(org.w3c.dom.Document document)
document - the document
public static void transform(org.w3c.dom.Document document,
javax.xml.transform.stream.StreamResult streamResult,
boolean xmlDeclaration)
document - the documentstreamResult - the stream resultxmlDeclaration - the xml declaration
public static org.w3c.dom.Document parse(java.lang.String input)
throws java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
input - the input
java.io.IOException - Signals that an I/O exception has occurred.
javax.xml.parsers.ParserConfigurationException - the parser configuration exception
org.xml.sax.SAXException - the SAX exception
public static org.w3c.dom.Document parse(byte[] input)
throws java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
input - the input
java.io.IOException - Signals that an I/O exception has occurred.
javax.xml.parsers.ParserConfigurationException - the parser configuration exception
org.xml.sax.SAXException - the SAX exception
public static org.w3c.dom.Document newDocument()
throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException - the parser configuration exception
public static org.w3c.dom.Document newDocument(java.lang.String rootName)
throws javax.xml.parsers.ParserConfigurationException
rootName - the root name
javax.xml.parsers.ParserConfigurationException - the parser configuration exception
public static org.w3c.dom.Element createElement(org.w3c.dom.Node parent,
java.lang.String nodeName)
parent - the parentnodeName - the node name
public static org.w3c.dom.Text createText(org.w3c.dom.Node parent,
java.lang.String text)
parent - the parenttext - the text
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||