public final class ReedSolomon
extends java.lang.Object
Implements Reed-Solomon enbcoding, as the name implies.
| Constructor and Description |
|---|
ReedSolomon(GenericGF field) |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(int[] received,
int twoS)
Decodes given set of received codewords, which include both data and
error-correction codewords.
|
void |
encode(int[] toEncode,
int ecBytes) |
public ReedSolomon(GenericGF field)
public void encode(int[] toEncode,
int ecBytes)
public void decode(int[] received,
int twoS)
Decodes given set of received codewords, which include both data and error-correction codewords. Really, this means it uses Reed-Solomon to detect and correct errors, in-place, in the input.
received - data and error-correction codewordstwoS - number of error-correction codewords available