com.google.zxing.common.reedsolomon
Class ReedSolomonDecoder

java.lang.Object
  extended by com.google.zxing.common.reedsolomon.ReedSolomonDecoder

public final class ReedSolomonDecoder
extends Object

Implements Reed-Solomon decoding, as the name implies.

The algorithm will not be explained here, but the following references were helpful in creating this implementation:

Much credit is due to William Rucklidge since portions of this code are an indirect port of his C++ Reed-Solomon implementation.

Since:
BlackBerry API 6.0.0

Constructor Summary
ReedSolomonDecoder(GF256 field)
           
 
Method Summary
 void decode(int[] received, int twoS)
          Decodes given set of received codewords, which include both data and error-correction codewords.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Constructor Detail

ReedSolomonDecoder

public ReedSolomonDecoder(GF256 field)
Since:
BlackBerry API 6.0.0


Method Detail

decode

public void decode(int[] received,
                   int twoS)
            throws ReedSolomonException

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.

Parameters:
received - data and error-correction codewords
twoS - number of error-correction codewords available
Throws:
ReedSolomonException - if decoding fails for any reason
Since:
BlackBerry API 6.0.0





Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.