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 String
getContentType()
XMLStreamReader
getReader()
void
serialize(OutputStream output, OMOutputFormat format)
void
serialize(Writer writer, OMOutputFormat format)
void
serialize(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:
serialize
in interfaceOMDataSource
- Throws:
XMLStreamException
-
getContentType
public String getContentType()
- Specified by:
getContentType
in interfaceDataSource
- Overrides:
getContentType
in classByteArrayDataSource
-
serialize
public void serialize(Writer writer, OMOutputFormat format) throws XMLStreamException
- Specified by:
serialize
in interfaceOMDataSource
- Throws:
XMLStreamException
-
serialize
public void serialize(XMLStreamWriter xmlWriter) throws XMLStreamException
- Specified by:
serialize
in interfaceOMDataSource
- Throws:
XMLStreamException
-
getReader
public XMLStreamReader getReader() throws XMLStreamException
- Specified by:
getReader
in interfaceOMDataSource
- Throws:
XMLStreamException
-
-