|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.zxing.MultiFormatReader
public final class MultiFormatReader
MultiFormatReader is a convenience class and the main entry point into the library for most uses. By default it attempts to decode all barcode formats that the library supports. Optionally, you can provide a hints object to request different behavior, for example only decoding QR codes.
| Constructor Summary | |
|---|---|
MultiFormatReader()
|
|
| Method Summary | |
|---|---|
Result |
decode(BinaryBitmap image)
This version of decode honors the intent of Reader.decode(BinaryBitmap) in that it passes null as a hint to the decoders. |
Result |
decode(BinaryBitmap image,
Map<DecodeHintType,?> hints)
Decode an image using the hints provided. |
Result |
decodeWithState(BinaryBitmap image)
Decode an image using the state set up by calling setHints() previously. |
void |
reset()
Resets any internal state the implementation has after a decode, to prepare it for reuse. |
void |
setHints(Map<DecodeHintType,?> hints)
This method adds state to the MultiFormatReader. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiFormatReader()
| Method Detail |
|---|
public Result decode(BinaryBitmap image)
throws NotFoundException
decode in interface Readerimage - The pixel data to decode
NotFoundException - Any errors which occurred
public Result decode(BinaryBitmap image,
Map<DecodeHintType,?> hints)
throws NotFoundException
decode in interface Readerimage - The pixel data to decodehints - The hints to use, clearing the previous state.
NotFoundException - Any errors which occurred
public Result decodeWithState(BinaryBitmap image)
throws NotFoundException
image - The pixel data to decode
NotFoundException - Any errors which occurredpublic void setHints(Map<DecodeHintType,?> hints)
hints - The set of hints to use for subsequent calls to decode(image)public void reset()
Reader
reset in interface Reader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||