Added BarcodeFormat to Result, indicating what type of barcode was detected. Added...
[zxing.git] / core / src / com / google / zxing / oned / UPCEReader.java
index 13fcfd5..2b68977 100644 (file)
@@ -17,6 +17,7 @@
 package com.google.zxing.oned;
 
 import com.google.zxing.ReaderException;
+import com.google.zxing.BarcodeFormat;
 import com.google.zxing.common.BitArray;
 
 /**
@@ -92,6 +93,10 @@ public final class UPCEReader extends AbstractUPCEANReader {
     throw new ReaderException("Unable to determine number system and check digit");
   }
 
+  BarcodeFormat getBarcodeFormat() {
+    return BarcodeFormat.UPC_E;  
+  }
+
   /**
    * Expands a UPC-E value back into its full, equivalent UPC-A code value.
    *