Java 类com.google.zxing.oned.rss.RSS14Reader 实例源码

项目:weex-3d-map    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  @SuppressWarnings("unchecked")    
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)){
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:QrCode    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  @SuppressWarnings("unchecked")    
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)) {
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:Tesseract-OCR-Scanner    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  @SuppressWarnings("unchecked")
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)) {
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:QrCodeScanner    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  @SuppressWarnings("unchecked")
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)) {
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:PortraitZXing    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  @SuppressWarnings("unchecked")    
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)){
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:PortraitZXing    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  @SuppressWarnings("unchecked")    
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)){
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:ZXing-Orient    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  @SuppressWarnings("unchecked")    
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)){
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:event-app    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  @SuppressWarnings("unchecked")    
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)){
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:weex-analyzer-android    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  @SuppressWarnings("unchecked")    
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)){
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:weex-3d-map    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  @SuppressWarnings("unchecked")    
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)){
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:Weex-TestDemo    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  @SuppressWarnings("unchecked")    
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)){
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:QrScan_Demo    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  @SuppressWarnings("unchecked")    
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)){
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:weex    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  @SuppressWarnings("unchecked")    
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)){
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:sres-app    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<OneDReader>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)){
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:TrueTone    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType, ?> hints) {
    @SuppressWarnings("unchecked")
    Collection<BarcodeFormat> possibleFormats = hints == null ? null :
            (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
    boolean useCode39CheckDigit = hints != null &&
            hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
    Collection<OneDReader> readers = new ArrayList<>();
    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.add(new MultiFormatUPCEANReader(hints));
        }
        if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
            readers.add(new Code39Reader(useCode39CheckDigit));
        }
        if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
            readers.add(new Code93Reader());
        }
        if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
            readers.add(new Code128Reader());
        }
        if (possibleFormats.contains(BarcodeFormat.ITF)) {
            readers.add(new ITFReader());
        }
        if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
            readers.add(new CodaBarReader());
        }
        if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
            readers.add(new RSS14Reader());
        }
        if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)) {
            readers.add(new RSSExpandedReader());
        }
    }
    if (readers.isEmpty()) {
        readers.add(new MultiFormatUPCEANReader(hints));
        readers.add(new Code39Reader());
        readers.add(new CodaBarReader());
        readers.add(new Code93Reader());
        readers.add(new Code128Reader());
        readers.add(new ITFReader());
        readers.add(new RSS14Reader());
        readers.add(new RSSExpandedReader());
    }
    this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:Discounty    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType, ?> hints) {
    @SuppressWarnings("unchecked")
    Collection<BarcodeFormat> possibleFormats = hints == null ? null :
            (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
    boolean useCode39CheckDigit = hints != null &&
            hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
    Collection<OneDReader> readers = new ArrayList<OneDReader>();
    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.add(new MultiFormatUPCEANReader(hints));
        }
        if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
            readers.add(new Code39Reader(useCode39CheckDigit));
        }
        if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
            readers.add(new Code93Reader());
        }
        if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
            readers.add(new Code128Reader());
        }
        if (possibleFormats.contains(BarcodeFormat.ITF)) {
            readers.add(new ITFReader());
        }
        if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
            readers.add(new CodaBarReader());
        }
        if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
            readers.add(new RSS14Reader());
        }
        if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)) {
            readers.add(new RSSExpandedReader());
        }
    }
    if (readers.isEmpty()) {
        readers.add(new MultiFormatUPCEANReader(hints));
        readers.add(new Code39Reader());
        readers.add(new CodaBarReader());
        readers.add(new Code93Reader());
        readers.add(new Code128Reader());
        readers.add(new ITFReader());
        readers.add(new RSS14Reader());
        readers.add(new RSSExpandedReader());
    }
    this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:bushido-android-app    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  @SuppressWarnings("unchecked")    
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)){
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:reacteu-app    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<OneDReader>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)){
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:Android-Birdcopy-Application    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  @SuppressWarnings("unchecked")    
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)){
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:CordovaDemo    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<OneDReader>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)){
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:MiBandDecompiled    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map map)
{
    Collection collection;
    boolean flag;
    ArrayList arraylist;
    if (map == null)
    {
        collection = null;
    } else
    {
        collection = (Collection)map.get(DecodeHintType.POSSIBLE_FORMATS);
    }
    if (map != null && map.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null)
    {
        flag = true;
    } else
    {
        flag = false;
    }
    arraylist = new ArrayList();
    if (collection != null)
    {
        if (collection.contains(BarcodeFormat.EAN_13) || collection.contains(BarcodeFormat.UPC_A) || collection.contains(BarcodeFormat.EAN_8) || collection.contains(BarcodeFormat.UPC_E))
        {
            arraylist.add(new MultiFormatUPCEANReader(map));
        }
        if (collection.contains(BarcodeFormat.CODE_39))
        {
            arraylist.add(new Code39Reader(flag));
        }
        if (collection.contains(BarcodeFormat.CODE_93))
        {
            arraylist.add(new Code93Reader());
        }
        if (collection.contains(BarcodeFormat.CODE_128))
        {
            arraylist.add(new Code128Reader());
        }
        if (collection.contains(BarcodeFormat.ITF))
        {
            arraylist.add(new ITFReader());
        }
        if (collection.contains(BarcodeFormat.CODABAR))
        {
            arraylist.add(new CodaBarReader());
        }
        if (collection.contains(BarcodeFormat.RSS_14))
        {
            arraylist.add(new RSS14Reader());
        }
        if (collection.contains(BarcodeFormat.RSS_EXPANDED))
        {
            arraylist.add(new RSSExpandedReader());
        }
    }
    if (arraylist.isEmpty())
    {
        arraylist.add(new MultiFormatUPCEANReader(map));
        arraylist.add(new Code39Reader());
        arraylist.add(new Code93Reader());
        arraylist.add(new Code128Reader());
        arraylist.add(new ITFReader());
        arraylist.add(new RSS14Reader());
        arraylist.add(new RSSExpandedReader());
    }
    a = (OneDReader[])arraylist.toArray(new OneDReader[arraylist.size()]);
}
项目:ng-cordova-demo    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<OneDReader>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)){
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:zxing-bsplus    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  @SuppressWarnings("unchecked")    
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)) {
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:ngCordova-demo    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<OneDReader>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)){
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:CordovaW8BarcodeDemo    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<OneDReader>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)){
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:cordova-template    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<OneDReader>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)){
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:oxPush    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<OneDReader>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)){
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:hive-ios    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<OneDReader>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)){
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:dev    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<OneDReader>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)){
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:ZxingCore    文件:MultiFormatOneDReader.java   
public MultiFormatOneDReader(Map<DecodeHintType,?> hints) {
  @SuppressWarnings("unchecked")    
  Collection<BarcodeFormat> possibleFormats = hints == null ? null :
      (Collection<BarcodeFormat>) hints.get(DecodeHintType.POSSIBLE_FORMATS);
  boolean useCode39CheckDigit = hints != null &&
      hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) != null;
  Collection<OneDReader> readers = new ArrayList<OneDReader>();
  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.add(new MultiFormatUPCEANReader(hints));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_39)) {
      readers.add(new Code39Reader(useCode39CheckDigit));
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_93)) {
      readers.add(new Code93Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODE_128)) {
      readers.add(new Code128Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.ITF)) {
       readers.add(new ITFReader());
    }
    if (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.add(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.add(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)){
      readers.add(new RSSExpandedReader());
    }
  }
  if (readers.isEmpty()) {
    readers.add(new MultiFormatUPCEANReader(hints));
    readers.add(new Code39Reader());
    readers.add(new CodaBarReader());
    readers.add(new Code93Reader());
    readers.add(new Code128Reader());
    readers.add(new ITFReader());
    readers.add(new RSS14Reader());
    readers.add(new RSSExpandedReader());
  }
  this.readers = readers.toArray(new OneDReader[readers.size()]);
}
项目:BibSearch    文件:MultiFormatOneDReader.java   
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 (possibleFormats.contains(BarcodeFormat.CODABAR)) {
       readers.addElement(new CodaBarReader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_14)) {
       readers.addElement(new RSS14Reader());
    }
    if (possibleFormats.contains(BarcodeFormat.RSS_EXPANDED)){
      readers.addElement(new RSSExpandedReader());
    }
  }
  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());
    readers.addElement(new RSS14Reader());
    readers.addElement(new RSSExpandedReader());
  }
}