Methods Summary |
---|
public int[] | getComplete()
return( complete );
|
public int[] | getDownloaded()
return( downloaded );
|
public byte[][] | getHashes()
return( hashes );
|
public int[] | getIncomplete()
return( incomplete );
|
public java.lang.String | getString()
return( super.getString().concat("[hashes=").concat(String.valueOf(hashes.length)).concat("]") );
// return( super.getString() + "[interval=" + interval + ", hashes=" + hashes.length + "]" );
|
public void | serialise(java.io.DataOutputStream os)
super.serialise(os);
// os.writeInt( interval );
if ( hashes != null ){
for (int i=0;i<hashes.length;i++){
os.write( hashes[i] );
os.writeInt( complete[i] );
os.writeInt( downloaded[i] );
os.writeInt( incomplete[i] );
}
}
|
public void | setDetails(byte[][] _hashes, int[] _complete, int[] _downloaded, int[] _incomplete)
hashes = _hashes;
complete = _complete;
downloaded = _downloaded;
incomplete = _incomplete;
|