Package org.apache.axiom.om.ds
Class ParserInputStreamDataSource
- java.lang.Object
-
- org.apache.axiom.om.ds.OMDataSourceExtBase
-
- org.apache.axiom.om.ds.ParserInputStreamDataSource
-
- All Implemented Interfaces:
org.apache.axiom.om.OMDataSource
,org.apache.axiom.om.OMDataSourceExt
public class ParserInputStreamDataSource extends OMDataSourceExtBase
Deprecated.A DataSource that is backed by an InputStream (read from a parser). The Data in this Data source owns the payload inputStream.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ParserInputStreamDataSource.Data
Deprecated.
-
Constructor Summary
Constructors Constructor Description ParserInputStreamDataSource(InputStream payload, String encoding)
Deprecated.This is the constructor that is normally called.ParserInputStreamDataSource(InputStream payload, String encoding, int behavior)
Deprecated.This constructor is used to test the different Behavior settings.
-
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.int
numReads()
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
-
ParserInputStreamDataSource
public ParserInputStreamDataSource(InputStream payload, String encoding)
Deprecated.This is the constructor that is normally called. Note that the ParserInputStreamDataSource takes ownership of the payload InputStream. It may copy, mark or reset the stream. Callers should not access the stream after this constructor is called- Parameters:
payload
- InputStreamencoding
-
-
ParserInputStreamDataSource
public ParserInputStreamDataSource(InputStream payload, String encoding, int behavior)
Deprecated.This constructor is used to test the different Behavior settings. Note that the ParserInputStreamDataSource takes ownership of the payload InputStream. It may copy, mark or reset the stream. Callers should not access the stream after this constructor is called.- Parameters:
payload
-encoding
-behavior
-
-
-
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
-
numReads
public int numReads()
Deprecated.
-
getObject
public Object getObject()
Deprecated.
-
isDestructiveRead
public boolean isDestructiveRead()
Deprecated.
-
isDestructiveWrite
public boolean isDestructiveWrite()
Deprecated.
-
getXMLBytes
public byte[] getXMLBytes(String encoding)
Deprecated.
-
close
public void close()
Deprecated.
-
copy
public org.apache.axiom.om.OMDataSourceExt copy()
Deprecated.Return a InputStreamDataSource backed by a ByteArrayInputStream
-
-