public interface MessageFormat
Modifier and Type | Method and Description |
---|---|
java.io.Serializable |
asSerializableObject()
Get the data as a Serializable Java object
|
void |
detach()
Detach this payload from the Message.
|
java.io.InputStream |
getInputStream()
Get an InputStream to the message payload
|
java.lang.String |
getMessageFormat()
Get the name of the message format
|
boolean |
isDetached()
Check if this payload is detached from its parent message
|
boolean |
isModified()
Does this message hold updated content?
|
void |
releaseResources()
Release any resources on this "detached" payload
|
java.lang.String |
toString()
Return a possibly trimmed/size limited String representation of the payload
|
void |
writeTo(java.io.OutputStream os)
Write the message payload to the given OutputStream
|
java.lang.String getMessageFormat()
boolean isModified()
void detach()
void releaseResources()
boolean isDetached()
java.lang.String toString()
toString
in class java.lang.Object
java.io.Serializable asSerializableObject() throws FormatConversionException
FormatConversionException
void writeTo(java.io.OutputStream os) throws java.io.IOException
os
- the OutputStream to serialize the message intojava.io.IOException
- on an IO errorjava.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
- on an IO error