public interface RawFileMessage
Modifier and Type | Method and Description |
---|---|
File |
getFile()
Get the underlying File containing the payload
|
long |
getFileSize()
The file size
|
InputStream |
getInputStream()
Get an InputStream to the message payload
|
OutputStream |
getOutputStream()
Get an OutputStream to write the message payload
|
String |
toString()
A String representation of the message payload, limited to 64K
|
void |
writeTo(OutputStream os)
Write the payload to the given OutputStream
|
File getFile()
long getFileSize()
InputStream getInputStream()
OutputStream getOutputStream()
void writeTo(OutputStream os) throws IOException
os
- the OutputStream to serialize the message intoIOException
- on an IO errorCopyright © 2010–2016 AdroitLogic. All rights reserved.