org.apache.axis2.builder
Class DataSourceBuilder.ByteArrayDataSourceEx

java.lang.Object
  extended by javax.mail.util.ByteArrayDataSource
      extended by org.apache.axis2.builder.DataSourceBuilder.ByteArrayDataSourceEx
All Implemented Interfaces:
DataSource, org.apache.axiom.om.OMDataSource
Enclosing class:
DataSourceBuilder

public class DataSourceBuilder.ByteArrayDataSourceEx
extends ByteArrayDataSource
implements org.apache.axiom.om.OMDataSource


Constructor Summary
DataSourceBuilder.ByteArrayDataSourceEx(byte[] bytes, String s)
           
 
Method Summary
 String getContentType()
           
 XMLStreamReader getReader()
           
 void serialize(OutputStream output, org.apache.axiom.om.OMOutputFormat format)
           
 void serialize(Writer writer, org.apache.axiom.om.OMOutputFormat format)
           
 void serialize(XMLStreamWriter xmlWriter)
           
 
Methods inherited from class javax.mail.util.ByteArrayDataSource
getInputStream, getName, getOutputStream, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceBuilder.ByteArrayDataSourceEx

public DataSourceBuilder.ByteArrayDataSourceEx(byte[] bytes,
                                               String s)
Method Detail

serialize

public void serialize(OutputStream output,
                      org.apache.axiom.om.OMOutputFormat format)
               throws XMLStreamException
Specified by:
serialize in interface org.apache.axiom.om.OMDataSource
Throws:
XMLStreamException

getContentType

public String getContentType()
Specified by:
getContentType in interface DataSource
Overrides:
getContentType in class ByteArrayDataSource

serialize

public void serialize(Writer writer,
                      org.apache.axiom.om.OMOutputFormat format)
               throws XMLStreamException
Specified by:
serialize in interface org.apache.axiom.om.OMDataSource
Throws:
XMLStreamException

serialize

public void serialize(XMLStreamWriter xmlWriter)
               throws XMLStreamException
Specified by:
serialize in interface org.apache.axiom.om.OMDataSource
Throws:
XMLStreamException

getReader

public XMLStreamReader getReader()
                          throws XMLStreamException
Specified by:
getReader in interface org.apache.axiom.om.OMDataSource
Throws:
XMLStreamException


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.