public class XmlObjectSource extends java.lang.Object implements Source
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PRETTY_PRINT_OPTION |
static java.lang.String |
TRACK_PAYLOAD_DETAILS |
static java.lang.String |
UNSYNC_XML_OPTION |
DEFAULT_CHARACTER_SET_ENCODING| Constructor and Description |
|---|
XmlObjectSource(XmlObject xml) |
XmlObjectSource(XmlObject xml, SchemaType type, java.lang.ClassLoader cl) |
XmlObjectSource(XmlObject xml, java.lang.String contentType) |
| Modifier and Type | Method and Description |
|---|---|
static XmlOptions |
createXmlOptions(TransformOptions options)
Utility class that creates a set of
XmlOptions from a set of TransformOptions. |
java.lang.ClassLoader |
getClassLoader() |
java.lang.String |
getContentType() |
java.io.InputStream |
getInputStream(TransformOptions options)
Returns streaming byte-baseed representation of the Source's content.
|
static XmlObjectSource |
getInstance(java.io.InputStream in, TransformOptions options)
Utility method that creates a new
XmlObjectSource from an InputStream containing marshalled XML. |
static XmlObjectSource |
getInstance(org.w3c.dom.Node node, TransformOptions options)
Utility method that creates a new
XmlObjectSource from a DOM node. |
static XmlObjectSource |
getInstance(java.lang.String xmlText, TransformOptions options)
Utility method that creates a new
XmlObjectSource from a piece of text containing stringified XML. |
SchemaType |
getSchemaType() |
XmlObject |
getXmlObject() |
java.lang.String |
toString() |
void |
writeTo(java.io.OutputStream os, TransformOptions options)
Serializes the Source's content to a byte-based stream.
|
public static final java.lang.String UNSYNC_XML_OPTION
public static final java.lang.String TRACK_PAYLOAD_DETAILS
public static final java.lang.String PRETTY_PRINT_OPTION
public XmlObjectSource(XmlObject xml)
public XmlObjectSource(XmlObject xml,
java.lang.String contentType)
public XmlObjectSource(XmlObject xml,
SchemaType type,
java.lang.ClassLoader cl)
public XmlObject getXmlObject()
public java.lang.String getContentType()
public java.lang.ClassLoader getClassLoader()
public SchemaType getSchemaType()
public java.io.InputStream getInputStream(TransformOptions options)
SourcegetInputStream in interface Sourceoptions - Options used to affect the serialization
public void writeTo(java.io.OutputStream os,
TransformOptions options)
throws java.io.IOException
SourceNote that this method may involve an internal transformation, although it should not in any way change the underlying content.
public static XmlOptions createXmlOptions(TransformOptions options)
XmlOptions from a set of TransformOptions. This method takes into account a base-set of default XmlOptions.options -public static XmlObjectSource getInstance(java.lang.String xmlText, TransformOptions options) throws TransformException
XmlObjectSource from a piece of text containing stringified XML.xmlText -options -TransformExceptionpublic static XmlObjectSource getInstance(org.w3c.dom.Node node, TransformOptions options) throws TransformException
XmlObjectSource from a DOM node.node -options -TransformExceptionpublic static XmlObjectSource getInstance(java.io.InputStream in, TransformOptions options) throws TransformException
XmlObjectSource from an InputStream containing marshalled XML. This utility method will consume the provided InputStream.in -options -TransformExceptionpublic java.lang.String toString()
toString in class java.lang.Object