Package org.kendar.sync.lib.protocol
Class FileDescriptorMessage
java.lang.Object
org.kendar.sync.lib.protocol.Message
org.kendar.sync.lib.protocol.FileDescriptorMessage
Message sent before transferring a file to describe its metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionFileDescriptorMessage(FileInfo fileInfo) Creates a new file descriptor message. -
Method Summary
Modifier and TypeMethodDescriptionprotected Messagedeserialize(ByteContainer buffer) Gets the message type for this message.protected voidserialize(ByteContainer buffer) voidsetFileInfo(FileInfo fileInfo) Methods inherited from class org.kendar.sync.lib.protocol.Message
deserialize, deserialize, getConnectionId, getPacketId, getSessionId, initialize, registerMessageType, serialize
-
Constructor Details
-
FileDescriptorMessage
public FileDescriptorMessage() -
FileDescriptorMessage
Creates a new file descriptor message.- Parameters:
fileInfo- The file information
-
-
Method Details
-
getMessageType
Description copied from class:MessageGets the message type for this message.- Specified by:
getMessageTypein classMessage- Returns:
- The message type
-
deserialize
- Specified by:
deserializein classMessage
-
serialize
-
getFileInfo
-
setFileInfo
-