public class ECReassembler
An erasure correction code based reassembly engine.
Modifiers | Name | Description |
---|---|---|
protected static int |
RQ_OVERHEAD |
|
protected int |
count |
|
protected SourceBlockDecoder |
decoder |
|
protected int |
fragmentLen |
Constructor and description |
---|
ECReassembler
(long dataLen, int fragmentLen) Creates a reassembler that will recreate a large data chunk from smaller fragments of a specified length. |
Type Params | Return Type | Name and description |
---|---|---|
|
int |
addFragment(byte[] fragment) |
|
byte[] |
getData() |
|
long |
getDataLength() |
|
int |
getFragmentCount() |
|
int |
getFragmentLength() |
|
int |
getMaxFragmentCount() |
|
int |
getMinFragmentCount() |
|
boolean |
hasFinishedReassembly() |
Creates a reassembler that will recreate a large data chunk from smaller fragments of a specified length.
dataLen
- length of the large data chuck to be reconstructed.fragmentLen
- size of each fragment in bytes.Copyright 2013-21, Acoustic Research Laboratory, National University of Singapore, and Subnero Pte Ltd