public class ByteArrayDataSource
extends java.lang.Object
implements javax.activation.DataSource
Constructor and Description |
---|
ByteArrayDataSource(byte[] bytes,
java.lang.String name,
java.lang.String contentType) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType() |
java.io.InputStream |
getInputStream() |
java.lang.String |
getName() |
java.io.OutputStream |
getOutputStream() |
public ByteArrayDataSource(byte[] bytes, java.lang.String name, java.lang.String contentType)
public java.io.InputStream getInputStream()
getInputStream
in interface javax.activation.DataSource
public java.lang.String getContentType()
getContentType
in interface javax.activation.DataSource
public java.lang.String getName()
getName
in interface javax.activation.DataSource
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface javax.activation.DataSource
java.io.IOException