Package com.sun.istack
Class ByteArrayDataSource
java.lang.Object
com.sun.istack.ByteArrayDataSource
- All Implemented Interfaces:
javax.activation.DataSource
DataSource backed by a byte buffer.- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
ConstructorsConstructorDescriptionByteArrayDataSource(byte[] buf, int length, String contentType) ByteArrayDataSource(byte[] buf, String contentType) -
Method Summary
-
Constructor Details
-
ByteArrayDataSource
- Parameters:
buf- input buffer - the byte array isn't being copied; used directlycontentType-
-
ByteArrayDataSource
- Parameters:
buf- input buffer - the byte array isn't being copied; used directlylength-contentType-
-
-
Method Details
-
getContentType
- Specified by:
getContentTypein interfacejavax.activation.DataSource
-
getInputStream
- Specified by:
getInputStreamin interfacejavax.activation.DataSource
-
getName
- Specified by:
getNamein interfacejavax.activation.DataSource
-
getOutputStream
- Specified by:
getOutputStreamin interfacejavax.activation.DataSource
-