com.infoengine.procunit.email
Class ByteArrayDataSource
java.lang.Object
com.infoengine.procunit.email.ByteArrayDataSource
- All Implemented Interfaces:
- javax.activation.DataSource
- class ByteArrayDataSource
- extends Object
- implements javax.activation.DataSource
This class implements a typed DataSource from:
an InfoEngine SAK Content object
an InputStream
a byte array
a String
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
contentType
private String contentType
data
private byte[] data
name
private String name
ByteArrayDataSource
ByteArrayDataSource(Content content)
ByteArrayDataSource
ByteArrayDataSource(InputStream is,
String contentType)
ByteArrayDataSource
ByteArrayDataSource(byte[] data,
String contentType)
ByteArrayDataSource
ByteArrayDataSource(String data,
String contentType)
getInputStream
public InputStream getInputStream()
throws IOException
- Specified by:
getInputStream
in interface javax.activation.DataSource
- Throws:
IOException
getOutputStream
public OutputStream getOutputStream()
throws IOException
- Specified by:
getOutputStream
in interface javax.activation.DataSource
- Throws:
IOException
getContentType
public String getContentType()
- Specified by:
getContentType
in interface javax.activation.DataSource
getName
public String getName()
- Specified by:
getName
in interface javax.activation.DataSource