public interface RawFileMessage
Modifier and Type | Method and Description |
---|---|
java.io.File |
getFile()
Get the underlying File containing the payload
|
long |
getFileSize()
The file size
|
java.io.InputStream |
getInputStream()
Get an InputStream to the message payload
|
java.io.OutputStream |
getOutputStream()
Get an OutputStream to write the message payload
|
java.lang.String |
toString()
A String representation of the message payload, limited to 64K
|
void |
writeTo(java.io.OutputStream os)
Write the payload to the given OutputStream
|
java.io.File getFile()
long getFileSize()
java.io.InputStream getInputStream()
java.io.OutputStream getOutputStream()
void writeTo(java.io.OutputStream os) throws java.io.IOException
os
- the OutputStream to serialize the message intojava.io.IOException
- on an IO errorjava.lang.String toString()
toString
in class java.lang.Object