Package com.sun.istack
Class ByteArrayDataSource
java.lang.Object
com.sun.istack.ByteArrayDataSource
- All Implemented Interfaces:
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- content type
-
ByteArrayDataSource
- Parameters:
buf- input buffer - the byte array isn't being copied; used directlylength- lengthcontentType- content type
-
-
Method Details
-
getContentType
- Specified by:
getContentTypein interfaceDataSource
-
getInputStream
- Specified by:
getInputStreamin interfaceDataSource
-
getName
- Specified by:
getNamein interfaceDataSource
-
getOutputStream
- Specified by:
getOutputStreamin interfaceDataSource
-