More javadoc
authorsrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Tue, 6 Nov 2007 19:07:08 +0000 (19:07 +0000)
committersrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Tue, 6 Nov 2007 19:07:08 +0000 (19:07 +0000)
git-svn-id: http://zxing.googlecode.com/svn/trunk@10 59b500cc-1b3d-0410-9834-0bbf25fbcc57

core/src/com/google/zxing/BarcodeFormat.java
core/src/com/google/zxing/DecodeHintType.java
core/src/com/google/zxing/MultiFormatReader.java

index d7a1c90..66c3e07 100644 (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() {}
 
 }
\ No newline at end of file
index 9c7755a..c4bfe5d 100644 (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 {
 
index d19cc94..1f78c86 100644 (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 {