Added support for codabar format
[zxing.git] / core / src / com / google / zxing / oned / EAN8Reader.java
index bb80112..30fbacb 100644 (file)
@@ -16,8 +16,8 @@
 
 package com.google.zxing.oned;
 
-import com.google.zxing.ReaderException;
 import com.google.zxing.BarcodeFormat;
+import com.google.zxing.NotFoundException;
 import com.google.zxing.common.BitArray;
 
 /**
@@ -25,7 +25,7 @@ import com.google.zxing.common.BitArray;
  *
  * @author Sean Owen
  */
-public final class EAN8Reader extends AbstractUPCEANReader {
+public final class EAN8Reader extends UPCEANReader {
 
   private final int[] decodeMiddleCounters;
 
@@ -34,7 +34,7 @@ public final class EAN8Reader extends AbstractUPCEANReader {
   }
 
   protected int decodeMiddle(BitArray row, int[] startRange, StringBuffer result)
-      throws ReaderException {
+      throws NotFoundException {
     int[] counters = decodeMiddleCounters;
     counters[0] = 0;
     counters[1] = 0;
@@ -66,7 +66,7 @@ public final class EAN8Reader extends AbstractUPCEANReader {
   }
 
   BarcodeFormat getBarcodeFormat() {
-    return BarcodeFormat.EAN_8;  
+    return BarcodeFormat.EAN_8;
   }
 
-}
\ No newline at end of file
+}