public final class DOMSerializer extends Object
| Modifier and Type | Method and Description |
|---|---|
static DocumentBuilderFactory |
getBuilderFactory() |
static String |
toString(Document doc) |
static String |
toString(DocumentFragment fragment) |
static String |
toString(DocumentFragment fragment,
com.sun.org.apache.xml.internal.serialize.OutputFormat format) |
static String |
toString(Document doc,
com.sun.org.apache.xml.internal.serialize.OutputFormat format) |
static String |
toString(Element element) |
static String |
toString(Element element,
com.sun.org.apache.xml.internal.serialize.OutputFormat format) |
static void |
write(DocumentFragment fragment,
com.sun.org.apache.xml.internal.serialize.OutputFormat format,
OutputStream out) |
static void |
write(DocumentFragment fragment,
OutputStream out) |
static void |
write(Document doc,
com.sun.org.apache.xml.internal.serialize.OutputFormat format,
OutputStream out) |
static void |
write(Document doc,
OutputStream out) |
static void |
write(Element element,
com.sun.org.apache.xml.internal.serialize.OutputFormat format,
OutputStream out) |
static void |
write(Element element,
OutputStream out) |
public static DocumentBuilderFactory getBuilderFactory()
public static String toString(Element element) throws IOException
IOExceptionpublic static String toString(Element element, com.sun.org.apache.xml.internal.serialize.OutputFormat format) throws IOException
IOExceptionpublic static String toString(DocumentFragment fragment) throws IOException
IOExceptionpublic static String toString(DocumentFragment fragment, com.sun.org.apache.xml.internal.serialize.OutputFormat format) throws IOException
IOExceptionpublic static String toString(Document doc) throws IOException
IOExceptionpublic static String toString(Document doc, com.sun.org.apache.xml.internal.serialize.OutputFormat format) throws IOException
IOExceptionpublic static void write(Element element, OutputStream out) throws IOException
IOExceptionpublic static void write(Element element, com.sun.org.apache.xml.internal.serialize.OutputFormat format, OutputStream out) throws IOException
IOExceptionpublic static void write(DocumentFragment fragment, OutputStream out) throws IOException
IOExceptionpublic static void write(DocumentFragment fragment, com.sun.org.apache.xml.internal.serialize.OutputFormat format, OutputStream out) throws IOException
IOExceptionpublic static void write(Document doc, OutputStream out) throws IOException
IOExceptionpublic static void write(Document doc, com.sun.org.apache.xml.internal.serialize.OutputFormat format, OutputStream out) throws IOException
IOExceptionCopyright © 2021. All rights reserved.