public class XMLOutput extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
USE_SAXON |
| Constructor and Description |
|---|
XMLOutput() |
| Modifier and Type | Method and Description |
|---|---|
static TransformerFactory |
getTransformerFactory() |
static void |
printNode(Node node,
OutputStream out)
Serializes an XML Node to an OutputStream (as UTF-8).
|
static void |
printNode(Node node,
Writer pw)
Serializes an XML Node to a Writer.
|
static byte[] |
toByteArray(Node node)
Serializes an XML Node as a byte array (as UTF-8)
|
static String |
toString(Node node)
Serializes an XML Node to a String.
|
static String |
toString(Node node,
String indent,
String method) |
public static TransformerFactory getTransformerFactory()
public static void printNode(Node node, OutputStream out) throws IOException
IOExceptionpublic static String toString(Node node) throws IOException
IOExceptionpublic static String toString(Node node, String indent, String method) throws IOException
IOExceptionpublic static void printNode(Node node, Writer pw) throws IOException
IOExceptionpublic static byte[] toByteArray(Node node) throws IOException
node - the XML Node to convertIOExceptionCopyright © 2017 TopQuadrant, Inc.. All rights reserved.