Class DataSourceProvider.ByteArrayDataSource
java.lang.Object
org.glassfish.jersey.message.internal.DataSourceProvider.ByteArrayDataSource
- All Implemented Interfaces:
DataSource
- Enclosing class:
DataSourceProvider
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
type
-
data
private byte[] data -
len
private int len -
name
-
-
Constructor Details
-
ByteArrayDataSource
- Throws:
IOException
-
-
Method Details
-
getInputStream
- Specified by:
getInputStream
in interfaceDataSource
- Throws:
IOException
-
getOutputStream
- Specified by:
getOutputStream
in interfaceDataSource
- Throws:
IOException
-
getContentType
- Specified by:
getContentType
in interfaceDataSource
-
getName
- Specified by:
getName
in interfaceDataSource
-
setName
-