ants.p2p.query
Class QueryPartialFileTuple

java.lang.Object
  extended by ants.p2p.query.QueryTuple
      extended by ants.p2p.query.QueryFileTuple
          extended by ants.p2p.query.QueryPartialFileTuple
All Implemented Interfaces:
java.io.Serializable

public class QueryPartialFileTuple
extends QueryFileTuple

See Also:
Serialized Form

Constructor Summary
QueryPartialFileTuple(java.lang.String sessionKey, java.lang.String fileName, java.lang.String fileHash, java.lang.String ed2kFileHash, java.lang.Object[] chunkHashes, java.lang.Long fileLength, java.lang.Integer blockSize, java.lang.Integer blocksPerSource, boolean[] downloadedBlockGroups, java.lang.String ownerID, java.lang.String ownerIP, java.lang.Integer freeSlots, java.lang.String connectionType, java.lang.String percentage, java.lang.String extendedInfos)
           
 
Method Summary
 boolean checkHashesValidity()
           
 void decrypt(javax.crypto.Cipher c)
           
 void encrypt(javax.crypto.Cipher c)
           
 boolean equals(java.lang.Object o)
           
 java.lang.Integer getBlockSize()
           
 java.lang.Integer getBlocksPerSource()
           
 ChunkHashes getChunkHashes()
           
 java.lang.String getConnectionType()
           
 boolean[] getDownloadedBlockGroups()
           
 java.lang.String getED2KFileHash()
           
 java.lang.String getExtendedInfos()
           
 java.lang.String getFileHash()
           
 java.lang.String getFileName()
           
 java.lang.Integer getFreeSlots()
           
 java.lang.String getOwnerID()
           
 java.lang.String getOwnerIP()
           
 java.lang.String getPercentage()
           
 java.lang.Long getSize()
           
 java.lang.String toString()
           
 
Methods inherited from class ants.p2p.query.QueryFileTuple
getEncryptedSessionKey
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryPartialFileTuple

public QueryPartialFileTuple(java.lang.String sessionKey,
                             java.lang.String fileName,
                             java.lang.String fileHash,
                             java.lang.String ed2kFileHash,
                             java.lang.Object[] chunkHashes,
                             java.lang.Long fileLength,
                             java.lang.Integer blockSize,
                             java.lang.Integer blocksPerSource,
                             boolean[] downloadedBlockGroups,
                             java.lang.String ownerID,
                             java.lang.String ownerIP,
                             java.lang.Integer freeSlots,
                             java.lang.String connectionType,
                             java.lang.String percentage,
                             java.lang.String extendedInfos)
Method Detail

getFileName

public java.lang.String getFileName()
Specified by:
getFileName in class QueryFileTuple

getFileHash

public java.lang.String getFileHash()
Specified by:
getFileHash in class QueryFileTuple

getED2KFileHash

public java.lang.String getED2KFileHash()
Specified by:
getED2KFileHash in class QueryFileTuple

getChunkHashes

public ChunkHashes getChunkHashes()
Specified by:
getChunkHashes in class QueryFileTuple

getSize

public java.lang.Long getSize()
Specified by:
getSize in class QueryFileTuple

getOwnerID

public java.lang.String getOwnerID()
Specified by:
getOwnerID in class QueryFileTuple

getOwnerIP

public java.lang.String getOwnerIP()
Specified by:
getOwnerIP in class QueryFileTuple

getFreeSlots

public java.lang.Integer getFreeSlots()
Specified by:
getFreeSlots in class QueryFileTuple

getConnectionType

public java.lang.String getConnectionType()
Specified by:
getConnectionType in class QueryFileTuple

getBlockSize

public java.lang.Integer getBlockSize()

getBlocksPerSource

public java.lang.Integer getBlocksPerSource()

getDownloadedBlockGroups

public boolean[] getDownloadedBlockGroups()

getPercentage

public java.lang.String getPercentage()

getExtendedInfos

public java.lang.String getExtendedInfos()
Specified by:
getExtendedInfos in class QueryFileTuple

encrypt

public void encrypt(javax.crypto.Cipher c)
             throws java.lang.Exception
Overrides:
encrypt in class QueryTuple
Throws:
java.lang.Exception

decrypt

public void decrypt(javax.crypto.Cipher c)
             throws java.lang.Exception
Overrides:
decrypt in class QueryTuple
Throws:
java.lang.Exception

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Specified by:
toString in class QueryFileTuple

checkHashesValidity

public boolean checkHashesValidity()
Specified by:
checkHashesValidity in class QueryFileTuple