Class DataSourceProvider.ByteArrayDataSource

java.lang.Object
org.glassfish.jersey.message.internal.DataSourceProvider.ByteArrayDataSource
All Implemented Interfaces:
jakarta.activation.DataSource
Enclosing class:
DataSourceProvider

public static class DataSourceProvider.ByteArrayDataSource extends Object implements jakarta.activation.DataSource
Modified from javax.mail.util.ByteArrayDataSource A DataSource backed by a byte array. The byte array may be passed in directly, or may be initialized from an InputStream or a String.
Since:
JavaMail 1.4
Author:
John Mani, Bill Shannon, Max Spivak
  • Constructor Details

  • Method Details

    • getInputStream

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

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

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

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

      public void setName(String name)