ants.p2p.messages
Class FilePartMessage

java.lang.Object
  extended by ants.p2p.Message
      extended by ants.p2p.messages.FilePartMessage
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class FilePartMessage
extends Message

See Also:
Serialized Form

Field Summary
 
Fields inherited from class ants.p2p.Message
dest
 
Constructor Summary
FilePartMessage(byte[] content, byte[] hash, java.lang.Long partId, FilePushMessage fpm)
           
FilePartMessage(Message m, byte[] content, byte[] hash, java.lang.Long partId, FilePushMessage fpm)
           
 
Method Summary
 void decrypt(javax.crypto.Cipher c)
           
 void encrypt(javax.crypto.Cipher c)
           
 byte[] getContent()
           
 FilePushMessage getFilePushMessage()
           
 byte[] getHash()
           
 java.lang.Long getPartId()
           
 
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
 

Constructor Detail

FilePartMessage

public FilePartMessage(Message m,
                       byte[] content,
                       byte[] hash,
                       java.lang.Long partId,
                       FilePushMessage fpm)

FilePartMessage

public FilePartMessage(byte[] content,
                       byte[] hash,
                       java.lang.Long partId,
                       FilePushMessage fpm)
Method Detail

getContent

public byte[] getContent()

getHash

public byte[] getHash()

getPartId

public java.lang.Long getPartId()

getFilePushMessage

public FilePushMessage getFilePushMessage()

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