More javadoc

git-svn-id: https://zxing.googlecode.com/svn/trunk@10 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2007-11-06 19:07:08 +00:00
parent f44627915e
commit 4a39981245
3 changed files with 13 additions and 2 deletions

View file

@ -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() {}
}

View file

@ -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 {

View file

@ -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 {