public class ECFragmenter
An erasure correction code based fragmentation engine.
Modifiers | Name | Description |
---|---|---|
protected static int |
RQ_OVERHEAD |
|
protected int |
count |
|
protected SourceBlockEncoder |
encoder |
|
protected int |
fragmentLen |
Constructor and description |
---|
ECFragmenter
(byte[] data, int fragmentLen) Creates a fragmenter that will fragment the given data into smaller fragments of a specified length. |
Type Params | Return Type | Name and description |
---|---|---|
|
long |
getDataLength() |
|
int |
getFragmentCount() |
|
int |
getFragmentID() |
|
int |
getFragmentLength() |
|
int |
getMaxFragmentCount() |
|
int |
getMinFragmentCount() |
|
boolean |
hasMoreFragments() |
|
byte[] |
nextFragment() |
Creates a fragmenter that will fragment the given data into smaller fragments of a specified length.
data
- byte array containing the large data to be fragmented.fragmentLen
- size of each fragment in bytes.Copyright 2013-21, Acoustic Research Laboratory, National University of Singapore, and Subnero Pte Ltd