Package com.reve.reed.solomon.sample
Class SampleDecoder
java.lang.Object
com.reve.reed.solomon.sample.SampleDecoder
Command-line program that decodes a file using Reed-Solomon 4+2.
The file name given should be the name of the file to decode, say
"foo.txt". This program will expected to find "foo.txt.0" through
"foo.txt.5", with at most two missing. It will then write
"foo.txt.decoded".
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DATA_SHARDS
public static final int DATA_SHARDS- See Also:
-
PARITY_SHARDS
public static final int PARITY_SHARDS- See Also:
-
TOTAL_SHARDS
public static final int TOTAL_SHARDS- See Also:
-
BYTES_IN_INT
public static final int BYTES_IN_INT- See Also:
-
-
Constructor Details
-
SampleDecoder
public SampleDecoder()
-
-
Method Details
-
main
- Throws:
IOException
-