Class DataSourceBuilder.ByteArrayDataSourceEx

java.lang.Object
org.apache.axiom.attachments.ByteArrayDataSource
org.apache.axis2.builder.DataSourceBuilder.ByteArrayDataSourceEx
All Implemented Interfaces:
jakarta.activation.DataSource, org.apache.axiom.ext.activation.SizeAwareDataSource, org.apache.axiom.om.OMDataSource
Enclosing class:
DataSourceBuilder

public class DataSourceBuilder.ByteArrayDataSourceEx extends org.apache.axiom.attachments.ByteArrayDataSource implements org.apache.axiom.om.OMDataSource
  • Constructor Details

    • ByteArrayDataSourceEx

      public ByteArrayDataSourceEx(byte[] bytes, String s)
  • Method Details

    • 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 jakarta.activation.DataSource
      Overrides:
      getContentType in class org.apache.axiom.attachments.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