ants.p2p.messages
Class FileSizePushMessage
java.lang.Object
ants.p2p.Message
ants.p2p.messages.FileSizePushMessage
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class FileSizePushMessage
- extends Message
- See Also:
- Serialized Form
Methods inherited from class ants.p2p.Message |
disableAutoRetransmit, equals, fillMessageProperties, getAck_Id, getDelivered, getDest, getPublicKey, getRetrasmissions, getSignableMessage, getSignature, getSource, getSourceAddress, getType, getVersion, invalidate, resetDelivered, resetDest, resetSource, retrasmitted, setDelivered, setPublicKey, setSignature |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileSizePushMessage
public FileSizePushMessage(Message m,
java.lang.String fileName,
java.lang.Long size)
FileSizePushMessage
public FileSizePushMessage(java.lang.String fileName,
byte[] hash,
java.lang.Long size)
getFileName
public java.lang.String getFileName()
getHash
public byte[] getHash()
getSize
public java.lang.Long getSize()
encrypt
public void encrypt(javax.crypto.Cipher c)
throws java.lang.Exception
- Overrides:
encrypt
in class Message
- Throws:
java.lang.Exception
decrypt
public void decrypt(javax.crypto.Cipher c)
throws java.lang.Exception
- Overrides:
decrypt
in class Message
- Throws:
java.lang.Exception