public final class MultiFormatReader extends Object implements Reader
Constructor and Description |
---|
MultiFormatReader() |
Modifier and Type | Method and Description |
---|---|
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.
|
public Result decode(BinaryBitmap image) throws NotFoundException
decode
in interface Reader
image
- The pixel data to decodeNotFoundException
- Any errors which occurredpublic Result decode(BinaryBitmap image, Map<DecodeHintType,?> hints) throws NotFoundException
decode
in interface Reader
image
- The pixel data to decodehints
- The hints to use, clearing the previous state.NotFoundException
- Any errors which occurredpublic Result decodeWithState(BinaryBitmap image) throws NotFoundException
image
- The pixel data to decodeNotFoundException
- Any errors which occurredpublic void setHints(Map<DecodeHintType,?> hints)
hints
- The set of hints to use for subsequent calls to decode(image)Copyright © 2007–2024. All rights reserved.