|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bea.wli.sb.sources.XmlObjectSource
public class XmlObjectSource
Apache XBean Source Source content is represented as an Apache XBean. The XBean may be typed and so may be accompanied by a SchemaType object and an associated ClassLoader. However, both of these are entirely optional and the XBean may be untyped XML.
| Field Summary |
|---|
| Fields inherited from interface com.bea.wli.sb.sources.Source |
|---|
DEFAULT_CHARACTER_SET_ENCODING |
| Constructor Summary | |
|---|---|
XmlObjectSource(org.apache.xmlbeans.XmlObject xml)
|
|
XmlObjectSource(org.apache.xmlbeans.XmlObject xml,
org.apache.xmlbeans.SchemaType type,
ClassLoader cl)
|
|
| Method Summary | |
|---|---|
static org.apache.xmlbeans.XmlOptions |
createXmlOptions(TransformOptions options)
Utility class that creates a set of XmlOptions from a set of
TransformOptions. |
ClassLoader |
getClassLoader()
|
InputStream |
getInputStream(TransformOptions options)
Returns streaming byte-baseed representation of the Source's content. |
static XmlObjectSource |
getInstance(InputStream in,
TransformOptions options)
Utility method that creates a new XmlObjectSource from an
InputStream containing marshalled XML. |
static XmlObjectSource |
getInstance(Node node,
TransformOptions options)
Utility method that creates a new XmlObjectSource from a
DOM node. |
static XmlObjectSource |
getInstance(String xmlText,
TransformOptions options)
Utility method that creates a new XmlObjectSource from a
piece of text containing stringified XML. |
org.apache.xmlbeans.SchemaType |
getSchemaType()
|
org.apache.xmlbeans.XmlObject |
getXmlObject()
|
String |
toString()
|
void |
writeTo(OutputStream os,
TransformOptions options)
Serializes the Source's content to a byte-based stream. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XmlObjectSource(org.apache.xmlbeans.XmlObject xml)
public XmlObjectSource(org.apache.xmlbeans.XmlObject xml,
org.apache.xmlbeans.SchemaType type,
ClassLoader cl)
| Method Detail |
|---|
public org.apache.xmlbeans.XmlObject getXmlObject()
public ClassLoader getClassLoader()
public org.apache.xmlbeans.SchemaType getSchemaType()
public InputStream getInputStream(TransformOptions options)
Source
getInputStream in interface Sourceoptions - Options used to affect the serialization
public void writeTo(OutputStream os,
TransformOptions options)
throws IOException
Source
writeTo in interface Sourceos - the OutputStream to which serialized content will be writtenoptions - TransformOptions used to affect the serialization
IOExceptionpublic static org.apache.xmlbeans.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(String xmlText,
TransformOptions options)
throws TransformException
XmlObjectSource from a
piece of text containing stringified XML.
xmlText - options -
TransformException
public static XmlObjectSource getInstance(Node node,
TransformOptions options)
throws TransformException
XmlObjectSource from a
DOM node.
node - options -
TransformException
public static XmlObjectSource getInstance(InputStream in,
TransformOptions options)
throws TransformException
XmlObjectSource from an
InputStream containing marshalled XML. This utility method
will consume the provided InputStream.
in - options -
TransformExceptionpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||