public class TestDataSource
extends java.lang.Object
implements jakarta.activation.DataSource
Constructor and Description |
---|
TestDataSource(byte[] byte_array) |
Modifier and Type | Method and 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 jakarta.activation.DataSource
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface jakarta.activation.DataSource
java.io.IOException
public java.lang.String getContentType()
getContentType
in interface jakarta.activation.DataSource
public java.lang.String getName()
getName
in interface jakarta.activation.DataSource