// Path: app/src/main/java/com/joostvdoorn/glutenvrij/scanner/core/oned/MultiFormatOneDReader.java
// public final class MultiFormatOneDReader extends OneDReader {
// 
//   private final Vector readers;
// 
//   public MultiFormatOneDReader() {
// 	  readers = new Vector();
// 	  readers.addElement(new MultiFormatUPCEANReader());
//       readers.addElement(new Code39Reader());
//       //readers.addElement(new CodaBarReader());
//       readers.addElement(new Code93Reader());
//       readers.addElement(new Code128Reader());
//       readers.addElement(new ITFReader());
//   }
//   
//   public MultiFormatOneDReader(Hashtable hints) {
//     Vector possibleFormats = hints == null ? null :
//         (Vector) hints.get(DecodeHintType.POSSIBLE_FORMATS);
//     boolean useCode39CheckDigit = hints != null &&
//         hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
//     readers = new Vector();
//     if (possibleFormats != null) {
//       if (possibleFormats.contains(BarcodeFormat.EAN_13) ||
//           possibleFormats.contains(BarcodeFormat.UPC_A) ||
//           possibleFormats.contains(BarcodeFormat.EAN_8) ||
//           possibleFormats.contains(BarcodeFormat.UPC_E)) {
//         readers.addElement(new MultiFormatUPCEANReader(hints));
//       }
//       if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
//         readers.addElement(new Code39Reader(useCode39CheckDigit));
//       }
//       if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
//         readers.addElement(new Code93Reader());
//       }
//       if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
//         readers.addElement(new Code128Reader());
//       }
//       if (possibleFormats.contains(BarcodeFormat.ITF)) {
//          readers.addElement(new ITFReader());
//       }
//     }
//     if (readers.isEmpty()) {
//       readers.addElement(new MultiFormatUPCEANReader(hints));
//       readers.addElement(new Code39Reader());
//       //readers.addElement(new CodaBarReader());
//       readers.addElement(new Code93Reader());
//       readers.addElement(new Code128Reader());
//       readers.addElement(new ITFReader());
//     }
//   }
// 
//   public Result decodeRow(int rowNumber, BitArray row, Hashtable hints) throws NotFoundException {
//     int size = readers.size();
//     for (int i = 0; i < size; i++) {
//       OneDReader reader = (OneDReader) readers.elementAt(i);
//       try {
//         return reader.decodeRow(rowNumber, row, hints);
//       } catch (ReaderException re) {
//         // continue
//       }
//     }
// 
//     throw NotFoundException.getNotFoundInstance();
//   }
// 
//   public void reset() {
//     int size = readers.size();
//     for (int i = 0; i < size; i++) {
//       Reader reader = (Reader) readers.elementAt(i);
//       reader.reset();
//     }
//   }
// 
// }


import com.joostvdoorn.glutenvrij.scanner.core.oned.MultiFormatOneDReader;
import java.util.Hashtable;
import java.util.Vector;
    }
    if (readers.isEmpty()) {
      if (!tryHarder) {
        readers.addElement(new MultiFormatOneDReader(hints));
      }

      readers.addElement(new QRCodeReader());
      readers.addElement(new DataMatrixReader());
      readers.addElement(new AztecReader());
      readers.addElement(new PDF417Reader());

      if (tryHarder) {
        readers.addElement(new MultiFormatOneDReader(hints));
      }
    }*/
  }

  public void reset() {
    int size = readers.size();
    for (int i = 0; i < size; i++) {
      Reader reader = (Reader) readers.elementAt(i);
      reader.reset();
    }
  }

  private Result decodeInternal(BinaryBitmap image) throws NotFoundException {
    int size = readers.size();
    for (int i = 0; i < size; i++) {
      Reader reader = (Reader) readers.elementAt(i);
      try {
// Path: app/src/main/java/com/joostvdoorn/glutenvrij/scanner/core/oned/MultiFormatOneDReader.java
// public final class MultiFormatOneDReader extends OneDReader {
// 
//   private final Vector readers;
// 
//   public MultiFormatOneDReader() {
// 	  readers = new Vector();
// 	  readers.addElement(new MultiFormatUPCEANReader());
//       readers.addElement(new Code39Reader());
//       //readers.addElement(new CodaBarReader());
//       readers.addElement(new Code93Reader());
//       readers.addElement(new Code128Reader());
//       readers.addElement(new ITFReader());
//   }
//   
//   public MultiFormatOneDReader(Hashtable hints) {
//     Vector possibleFormats = hints == null ? null :
//         (Vector) hints.get(DecodeHintType.POSSIBLE_FORMATS);
//     boolean useCode39CheckDigit = hints != null &&
//         hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
//     readers = new Vector();
//     if (possibleFormats != null) {
//       if (possibleFormats.contains(BarcodeFormat.EAN_13) ||
//           possibleFormats.contains(BarcodeFormat.UPC_A) ||
//           possibleFormats.contains(BarcodeFormat.EAN_8) ||
//           possibleFormats.contains(BarcodeFormat.UPC_E)) {
//         readers.addElement(new MultiFormatUPCEANReader(hints));
//       }
//       if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
//         readers.addElement(new Code39Reader(useCode39CheckDigit));
//       }
//       if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
//         readers.addElement(new Code93Reader());
//       }
//       if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
//         readers.addElement(new Code128Reader());
//       }
//       if (possibleFormats.contains(BarcodeFormat.ITF)) {
//          readers.addElement(new ITFReader());
//       }
//     }
//     if (readers.isEmpty()) {
//       readers.addElement(new MultiFormatUPCEANReader(hints));
//       readers.addElement(new Code39Reader());
//       //readers.addElement(new CodaBarReader());
//       readers.addElement(new Code93Reader());
//       readers.addElement(new Code128Reader());
//       readers.addElement(new ITFReader());
//     }
//   }
// 
//   public Result decodeRow(int rowNumber, BitArray row, Hashtable hints) throws NotFoundException {
//     int size = readers.size();
//     for (int i = 0; i < size; i++) {
//       OneDReader reader = (OneDReader) readers.elementAt(i);
//       try {
//         return reader.decodeRow(rowNumber, row, hints);
//       } catch (ReaderException re) {
//         // continue
//       }
//     }
// 
//     throw NotFoundException.getNotFoundInstance();
//   }
// 
//   public void reset() {
//     int size = readers.size();
//     for (int i = 0; i < size; i++) {
//       Reader reader = (Reader) readers.elementAt(i);
//       reader.reset();
//     }
//   }
// 
// }


// Path: app/src/main/java/com/joostvdoorn/glutenvrij/scanner/core/MultiFormatReader.java
import com.joostvdoorn.glutenvrij.scanner.core.oned.MultiFormatOneDReader;
import java.util.Hashtable;
import java.util.Vector;

    }
    if (readers.isEmpty()) {
      if (!tryHarder) {
        readers.addElement(new MultiFormatOneDReader(hints));
      }

      readers.addElement(new QRCodeReader());
      readers.addElement(new DataMatrixReader());
      readers.addElement(new AztecReader());
      readers.addElement(new PDF417Reader());

      if (tryHarder) {
        readers.addElement(new MultiFormatOneDReader(hints));
      }
    }*/
  }

  public void reset() {
    int size = readers.size();
    for (int i = 0; i < size; i++) {
      Reader reader = (Reader) readers.elementAt(i);
      reader.reset();
    }
  }

  private Result decodeInternal(BinaryBitmap image) throws NotFoundException {
    int size = readers.size();
    for (int i = 0; i < size; i++) {
      Reader reader = (Reader) readers.elementAt(i);
      try {
        return reader.decode(image, hints);