public class ByteArrayDataSource extends Object implements DataSource
It saves the trouble of saving and reading them back in.
| Constructor and Description |
|---|
ByteArrayDataSource(byte[] anArray,
String aContentType)
Creates a new instance of ByteArrayDataSource
|
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
public ByteArrayDataSource(byte[] anArray,
String aContentType)
throws IOException
IOExceptionpublic 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 DataSourceIOExceptionCopyright © 2015. All rights reserved.