javax.activation.DataSourcepublic class TestDataSource
extends java.lang.Object
implements javax.activation.DataSource
| Constructor | Description |
|---|---|
TestDataSource(byte[] byte_array) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getContentType() |
|
java.io.InputStream |
getInputStream() |
|
java.lang.String |
getName() |
|
java.io.OutputStream |
getOutputStream() |
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface javax.activation.DataSourcejava.io.IOExceptionpublic java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in interface javax.activation.DataSourcejava.io.IOExceptionpublic java.lang.String getContentType()
getContentType in interface javax.activation.DataSourcepublic java.lang.String getName()
getName in interface javax.activation.DataSource