public static class MimeUtil.ByteArrayDataSource extends Object implements DataSource
| Constructor and Description |
|---|
MimeUtil.ByteArrayDataSource(ByteArrayIOStream _ioStream,
String _contentType)
create a data source from a byte array
|
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType()
* (non-Javadoc)
|
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
public MimeUtil.ByteArrayDataSource(ByteArrayIOStream _ioStream, String _contentType)
_ioStream - the ByteArrayIOStream to use_contentType - the content type of the contentspublic String getContentType()
getContentType in interface DataSourceDataSource.getContentType()public InputStream getInputStream()
getInputStream in interface DataSourceDataSource.getInputStream()public String getName()
getName in interface DataSourceDataSource.getName()public OutputStream getOutputStream()
getOutputStream in interface DataSourceDataSource.getOutputStream()Copyright © 2015. All rights reserved.