public interface ByteArrayMessage
Modifier and Type | Method and Description |
---|---|
java.io.Serializable |
asSerializableObject()
The payload as a Serializable byte[]
|
byte[] |
getBytes()
Get the payload byte[]
|
java.lang.String |
toString()
Return the payload as a String - limited to 64K in size
|
void |
writeTo(java.io.OutputStream os)
Write the payload to the given OutputStream
|
java.lang.String toString()
toString
in class java.lang.Object
void writeTo(java.io.OutputStream os) throws java.io.IOException
os
- the OutputStream to serialize the message intojava.io.IOException
- on failurejava.io.Serializable asSerializableObject() throws FormatConversionException
FormatConversionException
- on failurebyte[] getBytes()