public interface DataHandlerMessage
Modifier and Type | Method and Description |
---|---|
javax.activation.DataHandler |
getDataHandler()
Get the underlying DataHandler instance
|
java.io.InputStream |
getInputStream()
Return an InputStream to the DataHandler payload
|
void |
writeTo(java.io.OutputStream os)
Writes the DataHandler payload to the given OutputStream
|
void writeTo(java.io.OutputStream os) throws java.io.IOException
os
- the OutputStream to serialize the message intojava.io.IOException
- on IO errorsjava.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
- on IO errorsjavax.activation.DataHandler getDataHandler()