Represents a fragmentation engine that takes in a large byte array and generates a number of smaller fragment byte arrays. These can be reassembled back into the large byte array using the Resassembler interface.
Type Params | Return Type | Name and description |
---|---|---|
|
long |
getDataLength() Gets length of the data array to fragment. |
|
int |
getFragmentCount() Gets the number of fragments already generated by this fragmenter. |
|
int |
getFragmentID() Gets the fragment ID of the next fragment to be generated. |
|
int |
getFragmentLength() Gets length of each fragment. |
|
int |
getMaxFragmentCount() Gets the maximum number of fragments that can be generated from the data. |
|
int |
getMinFragmentCount() Gets the minimum number of fragments required to reassemble the data. |
|
boolean |
hasMoreFragments() Checks if more fragments can be generated. |
|
byte[] |
nextFragment() Generates the next fragment. |
Gets length of the data array to fragment.
Gets the number of fragments already generated by this fragmenter.
Gets the fragment ID of the next fragment to be generated.
Gets length of each fragment.
Gets the maximum number of fragments that can be generated from the data.
Gets the minimum number of fragments required to reassemble the data.
Checks if more fragments can be generated.
Generates the next fragment.