public class FileMessage extends ImmutableMessage
metadata
Constructor and Description |
---|
FileMessage(java.io.File file)
Creates a new FileMessage
|
FileMessage(java.io.File file,
java.lang.String metadata) |
FileMessage(java.lang.String fileName)
Creates a new FileMessage
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
getFile()
Retrieves this message's payload
|
genMetadata, genMetadata, genMetadataEntry, getMetadata, getMetadata
public FileMessage(java.io.File file, java.lang.String metadata)
public FileMessage(java.io.File file)
file
- payloadpublic FileMessage(java.lang.String fileName)
fileName
- payload