|
|||||||||
| 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,
Hashtable hints)
Decode an image using the hints provided. |
|
Result |
decodeWithState(BinaryBitmap image)
Decode an image using the state set up by calling setHints() previously. |
|
boolean |
has1DReader()
|
|
boolean |
has2DReader()
|
|
void |
reset()
Should be invoked after each call to decode in case the contained readers store state |
|
void |
setHints(Hashtable hints)
This method adds state to the MultiFormatReader. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, 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,
Hashtable 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(Hashtable hints)
hints - The set of hints to use for subsequent calls to decode(image)public boolean has1DReader()
public boolean has2DReader()
public void reset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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