com.google.zxing.pdf417.decoder
Class Decoder

java.lang.Object
  extended by com.google.zxing.pdf417.decoder.Decoder

public final class Decoder
extends java.lang.Object

The main class which implements PDF417 Code decoding -- as opposed to locating and extracting the PDF417 Code from an image.

Author:
SITA Lab (kevin.osullivan@sita.aero)

Constructor Summary
Decoder()
           
 
Method Summary
 DecoderResult decode(BitMatrix bits)
          Decodes a PDF417 Code represented as a BitMatrix.
 DecoderResult decode(boolean[][] image)
          Convenience method that can decode a PDF417 Code represented as a 2D array of booleans.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Decoder

public Decoder()
Method Detail

decode

public DecoderResult decode(boolean[][] image)
                     throws ReaderException

Convenience method that can decode a PDF417 Code represented as a 2D array of booleans. "true" is taken to mean a black module.

Parameters:
image - booleans representing white/black PDF417 modules
Returns:
text and bytes encoded within the PDF417 Code
Throws:
ReaderException - if the PDF417 Code cannot be decoded

decode

public DecoderResult decode(BitMatrix bits)
                     throws ReaderException

Decodes a PDF417 Code represented as a BitMatrix. A 1 or "true" is taken to mean a black module.

Parameters:
bits - booleans representing white/black PDF417 Code modules
Returns:
text and bytes encoded within the PDF417 Code
Throws:
ReaderException - if the PDF417 Code cannot be decoded