public class ByteArrayDataSource extends Object implements DataSource
| Constructor and Description |
|---|
ByteArrayDataSource(byte[] data,
String mime) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
public ByteArrayDataSource(byte[] data,
String mime)
public String getContentType()
getContentType in interface DataSourcepublic InputStream getInputStream() throws IOException
getInputStream in interface DataSourceIOExceptionpublic String getName()
getName in interface DataSourcepublic OutputStream getOutputStream() throws IOException
getOutputStream in interface DataSourceIOException