Methods Summary |
---|
public ByteChunk | getChunk()Returns the byte chunk for this request.
return _chunk;
|
public int | getChunkIndex()Returns the current chunk index.
return _chunkIndex;
|
public java.lang.String | getDownloadFilePath()Returns the download file path.
return _downloadFilePath;
|
public long | getNumberOfBytesSent()Returns the total number of bytes downloaded.
return _numBytesSent;
|
public int | getNumberOfChunks()Returns total number of download chunks for this request.
return _numChunks;
|
public long | getTotalFileSize()Returns the total file size for this request.
return _totalFileSize;
|
public void | incrementNumberOfBytesSent(int bytesRead)Increments the total number of bytes sent out.
_numBytesSent += bytesRead;
|
public boolean | isFirstChunk()Returns true if this is the first chunk to download.
return (_chunkIndex == 0);
|
public boolean | isLastChunk()Returns true if this the last chunk to download.
return (_chunkIndex == (_numChunks-1));
|
public boolean | isPrepared()Returns true if the request info is computed
return _isPrepared;
|
public void | setChunk(ByteChunk chunk)Sets the byte chunk for this request.
_chunk = chunk;
|
void | setChunkIndex(int i)Sets the current chunk index.
_chunkIndex = i;
// resets the byte chunk
_chunk = null;
|
void | setDownloadFilePath(java.lang.String f)Sets the download file path.
_downloadFilePath = f;
|
void | setNumberOfChunks(int n)Sets the total number of download chunks.
_numChunks = n;
|
void | setPrepared(boolean p)Sets the prepared flag for this request.
_isPrepared = p;
|