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 Summary
-
Method Summary
-
Constructor Details
-
ByteArrayDataSource
- Throws:
IOException
-
-
Method Details
-
getInputStream
- Specified by:
getInputStream
in interfacejakarta.activation.DataSource
- Throws:
IOException
-
getOutputStream
- Specified by:
getOutputStream
in interfacejakarta.activation.DataSource
- Throws:
IOException
-
getContentType
- Specified by:
getContentType
in interfacejakarta.activation.DataSource
-
getName
- Specified by:
getName
in interfacejakarta.activation.DataSource
-
setName
-