public final class ByteArrayDataSource extends Object implements javax.activation.DataSource
DataSource backed by a byte buffer.| Constructor and Description |
|---|
ByteArrayDataSource(byte[] buf,
int length,
String contentType) |
ByteArrayDataSource(byte[] buf,
String contentType) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
public ByteArrayDataSource(byte[] buf,
String contentType)
public ByteArrayDataSource(byte[] buf,
int length,
String contentType)
public String getContentType()
getContentType in interface javax.activation.DataSourcepublic InputStream getInputStream()
getInputStream in interface javax.activation.DataSourcepublic String getName()
getName in interface javax.activation.DataSourcepublic OutputStream getOutputStream()
getOutputStream in interface javax.activation.DataSourceCopyright © 2012. All Rights Reserved.