Package org.apache.axis2.builder
Class DataSourceBuilder.ByteArrayDataSourceEx
- java.lang.Object
-
- org.apache.axiom.attachments.ByteArrayDataSource
-
- org.apache.axis2.builder.DataSourceBuilder.ByteArrayDataSourceEx
-
- All Implemented Interfaces:
DataSource,SizeAwareDataSource,OMDataSource
- Enclosing class:
- DataSourceBuilder
public class DataSourceBuilder.ByteArrayDataSourceEx extends ByteArrayDataSource implements OMDataSource
-
-
Constructor Summary
Constructors Constructor Description ByteArrayDataSourceEx(byte[] bytes, String s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()XMLStreamReadergetReader()voidserialize(OutputStream output, OMOutputFormat format)voidserialize(Writer writer, OMOutputFormat format)voidserialize(XMLStreamWriter xmlWriter)-
Methods inherited from class org.apache.axiom.attachments.ByteArrayDataSource
getInputStream, getName, getOutputStream, getSize, setType
-
-
-
-
Constructor Detail
-
ByteArrayDataSourceEx
public ByteArrayDataSourceEx(byte[] bytes, String s)
-
-
Method Detail
-
serialize
public void serialize(OutputStream output, OMOutputFormat format) throws XMLStreamException
- Specified by:
serializein interfaceOMDataSource- Throws:
XMLStreamException
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceDataSource- Overrides:
getContentTypein classByteArrayDataSource
-
serialize
public void serialize(Writer writer, OMOutputFormat format) throws XMLStreamException
- Specified by:
serializein interfaceOMDataSource- Throws:
XMLStreamException
-
serialize
public void serialize(XMLStreamWriter xmlWriter) throws XMLStreamException
- Specified by:
serializein interfaceOMDataSource- Throws:
XMLStreamException
-
getReader
public XMLStreamReader getReader() throws XMLStreamException
- Specified by:
getReaderin interfaceOMDataSource- Throws:
XMLStreamException
-
-