public class PartiallyReceivedBulk
extends java.lang.Object
Constructor and Description |
---|
PartiallyReceivedBulk(MessageCore usm,
long size,
int blockSize,
RandomAccessBuffer raf,
boolean initialState)
Construct a PartiallyReceivedBulk.
|
Modifier and Type | Method and Description |
---|---|
void |
abort(int errCode,
java.lang.String why) |
java.lang.String |
getAbortDescription() |
int |
getAbortReason() |
byte[] |
getBlockData(int blockNum) |
boolean |
hasWholeFile() |
boolean |
isAborted() |
void |
remove(BulkTransmitter remove) |
public PartiallyReceivedBulk(MessageCore usm, long size, int blockSize, RandomAccessBuffer raf, boolean initialState)
size
- Size of the file, does not have to be a multiple of blockSize.blockSize
- Block size.raf
- Where to store the data.initialState
- If true, assume all blocks have been received. If false, assume no blocks have
been received.public void abort(int errCode, java.lang.String why)
public boolean isAborted()
public boolean hasWholeFile()
public byte[] getBlockData(int blockNum)
public void remove(BulkTransmitter remove)
public int getAbortReason()
public java.lang.String getAbortDescription()