Package org.kendar.sync.lib.protocol
Class FileEndMessage
java.lang.Object
org.kendar.sync.lib.protocol.Message
org.kendar.sync.lib.protocol.FileEndMessage
Message sent after all blocks of a file have been transferred to signal the end of the file transfer.
-
Constructor Summary
ConstructorsConstructorDescriptionFileEndMessage(String relativePath) Creates a new file end message.FileEndMessage(String relativePath, FileInfo fileInfo) Creates a new file end message. -
Method Summary
Modifier and TypeMethodDescriptionprotected Messagedeserialize(ByteContainer buffer) Gets the message type for this message.protected voidserialize(ByteContainer buffer) voidsetFileInfo(FileInfo fileInfo) voidsetRelativePath(String relativePath) Methods inherited from class org.kendar.sync.lib.protocol.Message
deserialize, deserialize, getConnectionId, getPacketId, getSessionId, initialize, serialize
-
Constructor Details
-
FileEndMessage
public FileEndMessage() -
FileEndMessage
Creates a new file end message.- Parameters:
relativePath- The relative path of the filefileInfo- The file information
-
FileEndMessage
Creates a new file end message.- Parameters:
relativePath- The relative path of the file
-
-
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
-
getRelativePath
-
setRelativePath
-
getFileInfo
-
setFileInfo
-