Class BlobDataSource

java.lang.Object
org.apache.axiom.util.blob.BlobDataSource
All Implemented Interfaces:
jakarta.activation.DataSource, org.apache.axiom.ext.activation.SizeAwareDataSource

public class BlobDataSource extends Object implements org.apache.axiom.ext.activation.SizeAwareDataSource
Deprecated.
Use DataHandlerUtils.toDataHandler(org.apache.axiom.blob.Blob) and DataHandler.getDataSource() instead.
Data source backed by a Blob.
  • Constructor Details

    • BlobDataSource

      public BlobDataSource(Blob blob, String contentType)
      Deprecated.
  • Method Details

    • getInputStream

      public InputStream getInputStream() throws IOException
      Deprecated.
      Specified by:
      getInputStream in interface jakarta.activation.DataSource
      Throws:
      IOException
    • getContentType

      public String getContentType()
      Deprecated.
      Specified by:
      getContentType in interface jakarta.activation.DataSource
    • getName

      public String getName()
      Deprecated.
      Specified by:
      getName in interface jakarta.activation.DataSource
    • getOutputStream

      public OutputStream getOutputStream() throws IOException
      Deprecated.
      Specified by:
      getOutputStream in interface jakarta.activation.DataSource
      Throws:
      IOException
    • getSize

      public long getSize()
      Deprecated.
      Specified by:
      getSize in interface org.apache.axiom.ext.activation.SizeAwareDataSource