当前位置: 首页>>代码示例>>Java>>正文


Java RSS14Reader类代码示例

本文整理汇总了Java中com.google.zxing.oned.rss.RSS14Reader的典型用法代码示例。如果您正苦于以下问题:Java RSS14Reader类的具体用法?Java RSS14Reader怎么用?Java RSS14Reader使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


RSS14Reader类属于com.google.zxing.oned.rss包,在下文中一共展示了RSS14Reader类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: MultiFormatOneDReader

import com.google.zxing.oned.rss.RSS14Reader; //导入依赖的package包/类
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()]);
}
 
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:49,代码来源:MultiFormatOneDReader.java

示例2: MultiFormatOneDReader

import com.google.zxing.oned.rss.RSS14Reader; //导入依赖的package包/类
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()]);
}
 
开发者ID:10045125,项目名称:QrCode,代码行数:49,代码来源:MultiFormatOneDReader.java

示例3: MultiFormatOneDReader

import com.google.zxing.oned.rss.RSS14Reader; //导入依赖的package包/类
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()]);
}
 
开发者ID:simplezhli,项目名称:Tesseract-OCR-Scanner,代码行数:49,代码来源:MultiFormatOneDReader.java

示例4: MultiFormatOneDReader

import com.google.zxing.oned.rss.RSS14Reader; //导入依赖的package包/类
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()]);
}
 
开发者ID:atomsheep,项目名称:sres-app,代码行数:48,代码来源:MultiFormatOneDReader.java

示例5: MultiFormatOneDReader

import com.google.zxing.oned.rss.RSS14Reader; //导入依赖的package包/类
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()]);
}
 
开发者ID:Ag47,项目名称:TrueTone,代码行数:49,代码来源:MultiFormatOneDReader.java

示例6: MultiFormatOneDReader

import com.google.zxing.oned.rss.RSS14Reader; //导入依赖的package包/类
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()]);
}
 
开发者ID:yakovenkodenis,项目名称:Discounty,代码行数:49,代码来源:MultiFormatOneDReader.java

示例7: MultiFormatOneDReader

import com.google.zxing.oned.rss.RSS14Reader; //导入依赖的package包/类
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()]);
}
 
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:68,代码来源:MultiFormatOneDReader.java

示例8: MultiFormatOneDReader

import com.google.zxing.oned.rss.RSS14Reader; //导入依赖的package包/类
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()]);
}
 
开发者ID:yinglovezhuzhu,项目名称:ZxingCore,代码行数:49,代码来源:MultiFormatOneDReader.java

示例9: MultiFormatOneDReader

import com.google.zxing.oned.rss.RSS14Reader; //导入依赖的package包/类
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());
  }
}
 
开发者ID:saqimtiaz,项目名称:BibSearch,代码行数:47,代码来源:MultiFormatOneDReader.java


注:本文中的com.google.zxing.oned.rss.RSS14Reader类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。