com.google.zxing.pdf417
Class PDF417Reader

java.lang.Object
  extended by com.google.zxing.pdf417.PDF417Reader
All Implemented Interfaces:
Reader

public final class PDF417Reader
extends Object
implements Reader

This implementation can detect and decode PDF417 codes in an image.

Since:
BlackBerry API 6.0.0

Constructor Summary
PDF417Reader()
           
 
Method Summary
 Result decode(BinaryBitmap image)
          Locates and decodes a PDF417 code in an image.
 Result decode(BinaryBitmap image, Hashtable hints)
          Locates and decodes a barcode in some format within an image.
static BitMatrix extractPureBits(BitMatrix image)
          This method detects a code in a "pure" image -- that is, pure monochrome image which contains only an unrotated, unskewed, image of a code, with some white border around it.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Constructor Detail

PDF417Reader

public PDF417Reader()
Since:
BlackBerry API 6.0.0


Method Detail

decode

public Result decode(BinaryBitmap image)
              throws NotFoundException,
                     FormatException
Locates and decodes a PDF417 code in an image.

Specified by:
decode in interface Reader
Parameters:
image - image of barcode to decode
Returns:
a String representing the content encoded by the PDF417 code
Throws:
NotFoundException - if a PDF417 code cannot be found,
FormatException - if a PDF417 cannot be decoded
Since:
BlackBerry API 6.0.0

decode

public Result decode(BinaryBitmap image,
                     Hashtable hints)
              throws NotFoundException,
                     FormatException
Description copied from interface: Reader
Locates and decodes a barcode in some format within an image. This method also accepts hints, each possibly associated to some data, which may help the implementation decode.

Specified by:
decode in interface Reader
Parameters:
image - image of barcode to decode
hints - passed as a Hashtable from DecodeHintType to arbitrary data. The meaning of the data depends upon the hint type. The implementation may or may not do anything with these hints.
Returns:
String which the barcode encodes
Throws:
NotFoundException - if the barcode cannot be located or decoded for any reason
FormatException
Since:
BlackBerry API 6.0.0

extractPureBits

public static BitMatrix extractPureBits(BitMatrix image)
                                 throws NotFoundException
This method detects a code in a "pure" image -- that is, pure monochrome image which contains only an unrotated, unskewed, image of a code, with some white border around it. This is a specialized method that works exceptionally fast in this special case.

Throws:
NotFoundException
See Also:
QRCodeReader.extractPureBits(BitMatrix), DataMatrixReader.extractPureBits(BitMatrix)
Since:
BlackBerry API 7.0.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal