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 TypeClassDescriptionclassDeprecated.Object containing the InputStream/encoding pair -
Constructor Summary
ConstructorsConstructorDescriptionInputStreamDataSource(InputStream is, String encoding) Deprecated.Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.org.apache.axiom.om.OMDataSourceExtcopy()Deprecated.Return a InputStreamDataSource backed by a ByteArrayInputStreamDeprecated.Deprecated.byte[]getXMLBytes(String encoding) Deprecated.getXMLInputStream(String encoding) Deprecated.booleanDeprecated.booleanDeprecated.voidserialize(OutputStream output, org.apache.axiom.om.OMOutputFormat format) Deprecated.voidserialize(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:
serializein interfaceorg.apache.axiom.om.OMDataSource- Overrides:
serializein classOMDataSourceExtBase- Throws:
XMLStreamException
-
serialize
Deprecated.- Specified by:
serializein interfaceorg.apache.axiom.om.OMDataSource- Overrides:
serializein classOMDataSourceExtBase- Throws:
XMLStreamException
-
getReader
Deprecated.- Throws:
XMLStreamException
-
getXMLInputStream
Deprecated.- Specified by:
getXMLInputStreamin interfaceorg.apache.axiom.om.OMDataSourceExt- Overrides:
getXMLInputStreamin 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
-
OMDataSourceinstances that are pull based (i.e. use anXMLStreamReader) and that are destructive. For these scenarios, simply useOMXMLBuilderFactoryto create anOMElementand 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 anOMSourcedElementwith a destructiveOMDataSource.