public static class MimeUtil.ByteArrayDataSource extends Object implements DataSource
Constructor and Description |
---|
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 ByteArrayDataSource(ByteArrayIOStream _ioStream, String _contentType)
_ioStream
- the ByteArrayIOStream to use_contentType
- the content type of the contentspublic String getContentType()
getContentType
in interface DataSource
DataSource.getContentType()
public InputStream getInputStream()
getInputStream
in interface DataSource
DataSource.getInputStream()
public String getName()
getName
in interface DataSource
DataSource.getName()
public OutputStream getOutputStream()
getOutputStream
in interface DataSource
DataSource.getOutputStream()
Copyright © 2018. All rights reserved.