mirror of
https://github.com/zxing/zxing.git
synced 2024-11-09 20:44:03 -08:00
More javadoc
git-svn-id: https://zxing.googlecode.com/svn/trunk@10 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
f44627915e
commit
4a39981245
|
@ -25,8 +25,13 @@ public final class BarcodeFormat {
|
|||
|
||||
// No, we can't use an enum here. J2ME doesn't support it.
|
||||
|
||||
/** UPC 1D barcode format family. */
|
||||
public static final BarcodeFormat UPC = new BarcodeFormat();
|
||||
/** QR Code 2D barcode format */
|
||||
public static final BarcodeFormat QR_CODE = new BarcodeFormat();
|
||||
/** DataMatrix 2D barcode format */
|
||||
public static final BarcodeFormat DATAMATRIX = new BarcodeFormat();
|
||||
|
||||
private BarcodeFormat() {}
|
||||
|
||||
}
|
|
@ -22,7 +22,7 @@ package com.google.zxing;
|
|||
* if anything, to do with the information that is supplied.
|
||||
*
|
||||
* @author srowen@google.com (Sean Owen), dswitkin@google.com (Daniel Switkin)
|
||||
* @see Reader#decode(MonochromeBitmapSource, java.util.Map)
|
||||
* @see Reader#decode(MonochromeBitmapSource, java.util.Hashtable)
|
||||
*/
|
||||
public final class DecodeHintType {
|
||||
|
||||
|
|
|
@ -21,7 +21,11 @@ import com.google.zxing.qrcode.QRCodeReader;
|
|||
import java.util.Hashtable;
|
||||
|
||||
/**
|
||||
* For now, only delegates to {@link QRCodeReader}.
|
||||
* <p>This implementation can detect barcodes in one of several formats within
|
||||
* an image, and then decode what it finds. This implementation supports all
|
||||
* barcode formats that this library supports.</p>
|
||||
*
|
||||
* <p>For now, only delegates to {@link QRCodeReader}.</p>
|
||||
*
|
||||
* @author srowen@google.com (Sean Owen), dswitkin@google.com (Daniel Switkin)
|
||||
*/
|
||||
|
@ -35,6 +39,8 @@ public final class MultiFormatReader implements Reader {
|
|||
throws ReaderException {
|
||||
Hashtable possibleFormats =
|
||||
hints == null ? null : (Hashtable) hints.get(DecodeHintType.POSSIBLE_FORMATS);
|
||||
// TODO for now we are only support QR Code so this behaves accordingly. This needs to
|
||||
// become more sophisticated
|
||||
if (possibleFormats == null || possibleFormats.contains(BarcodeFormat.QR_CODE)) {
|
||||
return new QRCodeReader().decode(image, hints);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue