// 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
* 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 {
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)
*/
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 {