ants.p2p.messages
Class FilePullMessage

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

public class FilePullMessage
extends Message

See Also:
Serialized Form

Field Summary
 
Fields inherited from class ants.p2p.Message
dest
 
Constructor Summary
FilePullMessage(Message m, java.lang.String fileName, byte[] hash, java.lang.Long offset, java.lang.Long blocks, java.lang.Integer blockSize, java.lang.String localFileName, java.lang.Boolean resume)
           
FilePullMessage(java.lang.String fileName, byte[] hash, java.lang.Long offset, java.lang.Long blocks, java.lang.Integer blockSize, java.lang.String localFileName, java.lang.Boolean resume)
           
 
Method Summary
 void decrypt(javax.crypto.Cipher c)
           
 void encrypt(javax.crypto.Cipher c)
           
 java.lang.Long getBlocks()
           
 java.lang.Integer getBlockSize()
           
 java.lang.String getFileName()
           
 byte[] getHash()
           
 java.lang.String getLocalFileName()
           
 java.lang.Long getOffset()
           
 java.lang.Boolean getResume()
           
 
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

FilePullMessage

public FilePullMessage(Message m,
                       java.lang.String fileName,
                       byte[] hash,
                       java.lang.Long offset,
                       java.lang.Long blocks,
                       java.lang.Integer blockSize,
                       java.lang.String localFileName,
                       java.lang.Boolean resume)

FilePullMessage

public FilePullMessage(java.lang.String fileName,
                       byte[] hash,
                       java.lang.Long offset,
                       java.lang.Long blocks,
                       java.lang.Integer blockSize,
                       java.lang.String localFileName,
                       java.lang.Boolean resume)
Method Detail

getBlocks

public java.lang.Long getBlocks()

getResume

public java.lang.Boolean getResume()

getFileName

public java.lang.String getFileName()

getLocalFileName

public java.lang.String getLocalFileName()

getHash

public byte[] getHash()

getOffset

public java.lang.Long getOffset()

getBlockSize

public java.lang.Integer getBlockSize()

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