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
public class InputStreamDataSource extends OMDataSourceExtBase
Deprecated.This class has been deprecated without replacement. Generally there is no need forOMDataSource
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
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
InputStreamDataSource.Data
Deprecated.Object containing the InputStream/encoding pair
-
Constructor Summary
Constructors Constructor Description InputStreamDataSource(InputStream is, String encoding)
Deprecated.Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
close()
Deprecated.org.apache.axiom.om.OMDataSourceExt
copy()
Deprecated.Return a InputStreamDataSource backed by a ByteArrayInputStreamObject
getObject()
Deprecated.XMLStreamReader
getReader()
Deprecated.byte[]
getXMLBytes(String encoding)
Deprecated.InputStream
getXMLInputStream(String encoding)
Deprecated.boolean
isDestructiveRead()
Deprecated.boolean
isDestructiveWrite()
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 Detail
-
InputStreamDataSource
public InputStreamDataSource(InputStream is, String encoding)
Deprecated.Constructor- Parameters:
is
-encoding
-
-
-
Method Detail
-
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
public void serialize(XMLStreamWriter xmlWriter) throws XMLStreamException
Deprecated.- Specified by:
serialize
in interfaceorg.apache.axiom.om.OMDataSource
- Overrides:
serialize
in classOMDataSourceExtBase
- Throws:
XMLStreamException
-
getReader
public XMLStreamReader getReader() throws XMLStreamException
Deprecated.- Throws:
XMLStreamException
-
getXMLInputStream
public InputStream getXMLInputStream(String encoding) throws UnsupportedEncodingException
Deprecated.- Specified by:
getXMLInputStream
in interfaceorg.apache.axiom.om.OMDataSourceExt
- Overrides:
getXMLInputStream
in classOMDataSourceExtBase
- Throws:
UnsupportedEncodingException
-
getObject
public Object getObject()
Deprecated.
-
isDestructiveRead
public boolean isDestructiveRead()
Deprecated.
-
isDestructiveWrite
public boolean isDestructiveWrite()
Deprecated.
-
getXMLBytes
public byte[] getXMLBytes(String encoding) throws UnsupportedEncodingException
Deprecated.- Throws:
UnsupportedEncodingException
-
close
public void close()
Deprecated.
-
copy
public org.apache.axiom.om.OMDataSourceExt copy()
Deprecated.Return a InputStreamDataSource backed by a ByteArrayInputStream
-
-