Package org.apache.axiom.om.ds
Class InputStreamDataSource
java.lang.Object
org.apache.axiom.om.ds.OMDataSourceExtBase
org.apache.axiom.om.ds.InputStreamDataSource
- All Implemented Interfaces:
org.apache.axiom.om.OMDataSource
,org.apache.axiom.om.OMDataSourceExt
Deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
Deprecated.Object containing the InputStream/encoding pair -
Constructor Summary
ConstructorsConstructorDescriptionInputStreamDataSource
(InputStream is, String encoding) Deprecated.Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Deprecated.org.apache.axiom.om.OMDataSourceExt
copy()
Deprecated.Return a InputStreamDataSource backed by a ByteArrayInputStreamDeprecated.Deprecated.byte[]
getXMLBytes
(String encoding) Deprecated.getXMLInputStream
(String encoding) Deprecated.boolean
Deprecated.boolean
Deprecated.void
serialize
(OutputStream output, org.apache.axiom.om.OMOutputFormat format) Deprecated.void
serialize
(XMLStreamWriter xmlWriter) Deprecated.Methods inherited from class org.apache.axiom.om.ds.OMDataSourceExtBase
getProperty, hasProperty, serialize, setProperty
-
Constructor Details
-
InputStreamDataSource
Deprecated.Constructor- Parameters:
is
-encoding
-
-
-
Method Details
-
serialize
public void serialize(OutputStream output, org.apache.axiom.om.OMOutputFormat format) throws XMLStreamException Deprecated.- Specified by:
serialize
in interfaceorg.apache.axiom.om.OMDataSource
- Overrides:
serialize
in classOMDataSourceExtBase
- Throws:
XMLStreamException
-
serialize
Deprecated.- Specified by:
serialize
in interfaceorg.apache.axiom.om.OMDataSource
- Overrides:
serialize
in classOMDataSourceExtBase
- Throws:
XMLStreamException
-
getReader
Deprecated.- Throws:
XMLStreamException
-
getXMLInputStream
Deprecated.- Specified by:
getXMLInputStream
in interfaceorg.apache.axiom.om.OMDataSourceExt
- Overrides:
getXMLInputStream
in classOMDataSourceExtBase
- Throws:
UnsupportedEncodingException
-
getObject
Deprecated. -
isDestructiveRead
public boolean isDestructiveRead()Deprecated. -
isDestructiveWrite
public boolean isDestructiveWrite()Deprecated. -
getXMLBytes
Deprecated.- Throws:
UnsupportedEncodingException
-
close
public void close()Deprecated. -
copy
public org.apache.axiom.om.OMDataSourceExt copy()Deprecated.Return a InputStreamDataSource backed by a ByteArrayInputStream
-
OMDataSource
instances that are pull based (i.e. use anXMLStreamReader
) and that are destructive. For these scenarios, simply useOMXMLBuilderFactory
to create anOMElement
and add it to the tree. Since this operation will not expand the element (in Axiom 1.3.x), the result will be the same as using anOMSourcedElement
with a destructiveOMDataSource
.