Package org.nuxeo.common.xmap
Class DOMSerializer
java.lang.Object
org.nuxeo.common.xmap.DOMSerializer
- Author:
- Bogdan Stefanescu
-
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentBuilderFactory
static DocumentFragment
getContentAsFragment
(Element element) static String
static String
toString
(DocumentFragment fragment) static String
toString
(DocumentFragment fragment, org.apache.xml.serialize.OutputFormat format) static String
static String
static String
static String
toStringOmitXml
(Element element) static void
write
(DocumentFragment fragment, OutputStream out) static void
write
(DocumentFragment fragment, org.apache.xml.serialize.OutputFormat format, OutputStream out) static void
write
(Document doc, OutputStream out) static void
write
(Document doc, org.apache.xml.serialize.OutputFormat format, OutputStream out) static void
write
(Element element, OutputStream out) static void
write
(Element element, org.apache.xml.serialize.OutputFormat format, OutputStream out)
-
Method Details
-
getBuilderFactory
- Returns:
- the builderFactory
-
toString
- Throws:
IOException
-
toStringOmitXml
- Throws:
IOException
-
toString
public static String toString(Element element, org.apache.xml.serialize.OutputFormat format) throws IOException - Throws:
IOException
-
toString
- Throws:
IOException
-
toString
public static String toString(DocumentFragment fragment, org.apache.xml.serialize.OutputFormat format) throws IOException - Throws:
IOException
-
toString
- Throws:
IOException
-
toString
public static String toString(Document doc, org.apache.xml.serialize.OutputFormat format) throws IOException - Throws:
IOException
-
write
- Throws:
IOException
-
write
public static void write(Element element, org.apache.xml.serialize.OutputFormat format, OutputStream out) throws IOException - Throws:
IOException
-
write
- Throws:
IOException
-
write
public static void write(DocumentFragment fragment, org.apache.xml.serialize.OutputFormat format, OutputStream out) throws IOException - Throws:
IOException
-
write
- Throws:
IOException
-
write
public static void write(Document doc, org.apache.xml.serialize.OutputFormat format, OutputStream out) throws IOException - Throws:
IOException
-
getContentAsFragment
-