public interface ObjectMessage
Modifier and Type | Method and Description |
---|---|
java.io.Serializable |
asSerializableObject()
Return payload as a Serializable Java Object
|
void |
writeTo(java.io.OutputStream os)
Serialize the payload Object to the given OutputStream
|
java.io.Serializable asSerializableObject() throws FormatConversionException
FormatConversionException
- if the base Object is not Serializablevoid writeTo(java.io.OutputStream os) throws java.io.IOException
os
- the OutputStream to serialize the message intojava.io.IOException