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


Java AbstractExpandedDecoder类代码示例

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


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

示例1: constructResult

import com.google.zxing.oned.rss.expanded.decoders.AbstractExpandedDecoder; //导入依赖的package包/类
static Result constructResult(List<ExpandedPair> pairs) throws NotFoundException, FormatException {
  BitArray binary = BitArrayBuilder.buildBitArray(pairs);

  AbstractExpandedDecoder decoder = AbstractExpandedDecoder.createDecoder(binary);
  String resultingString = decoder.parseInformation();

  ResultPoint[] firstPoints = pairs.get(0).getFinderPattern().getResultPoints();
  ResultPoint[] lastPoints  = pairs.get(pairs.size() - 1).getFinderPattern().getResultPoints();

  return new Result(
        resultingString,
        null,
        new ResultPoint[]{firstPoints[0], firstPoints[1], lastPoints[0], lastPoints[1]},
        BarcodeFormat.RSS_EXPANDED
    );
}
 
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:17,代码来源:RSSExpandedReader.java

示例2: constructResult

import com.google.zxing.oned.rss.expanded.decoders.AbstractExpandedDecoder; //导入依赖的package包/类
private static Result constructResult(List<ExpandedPair> pairs) throws NotFoundException{
  BitArray binary = BitArrayBuilder.buildBitArray(pairs);

  AbstractExpandedDecoder decoder = AbstractExpandedDecoder.createDecoder(binary);
  String resultingString = decoder.parseInformation();

  ResultPoint[] firstPoints = pairs.get(0).getFinderPattern().getResultPoints();
  ResultPoint[] lastPoints  = pairs.get(pairs.size() - 1).getFinderPattern().getResultPoints();

  return new Result(
        resultingString,
        null,
        new ResultPoint[]{firstPoints[0], firstPoints[1], lastPoints[0], lastPoints[1]},
        BarcodeFormat.RSS_EXPANDED
    );
}
 
开发者ID:atomsheep,项目名称:sres-app,代码行数:17,代码来源:RSSExpandedReader.java

示例3: constructResult

import com.google.zxing.oned.rss.expanded.decoders.AbstractExpandedDecoder; //导入依赖的package包/类
static Result constructResult(List<ExpandedPair> pairs) throws NotFoundException, FormatException {
    BitArray binary = BitArrayBuilder.buildBitArray(pairs);

    AbstractExpandedDecoder decoder = AbstractExpandedDecoder.createDecoder(binary);
    String resultingString = decoder.parseInformation();

    ResultPoint[] firstPoints = pairs.get(0).getFinderPattern().getResultPoints();
    ResultPoint[] lastPoints = pairs.get(pairs.size() - 1).getFinderPattern().getResultPoints();

    return new Result(
            resultingString,
            null,
            new ResultPoint[]{firstPoints[0], firstPoints[1], lastPoints[0], lastPoints[1]},
            BarcodeFormat.RSS_EXPANDED
    );
}
 
开发者ID:Ag47,项目名称:TrueTone,代码行数:17,代码来源:RSSExpandedReader.java

示例4: constructResult

import com.google.zxing.oned.rss.expanded.decoders.AbstractExpandedDecoder; //导入依赖的package包/类
static Result constructResult(List<ExpandedPair> pairs) throws NotFoundException {
    BitArray binary = BitArrayBuilder.buildBitArray(pairs);

    AbstractExpandedDecoder decoder = AbstractExpandedDecoder.createDecoder(binary);
    String resultingString = decoder.parseInformation();

    ResultPoint[] firstPoints = pairs.get(0).getFinderPattern().getResultPoints();
    ResultPoint[] lastPoints = pairs.get(pairs.size() - 1).getFinderPattern().getResultPoints();

    return new Result(
            resultingString,
            null,
            new ResultPoint[]{firstPoints[0], firstPoints[1], lastPoints[0], lastPoints[1]},
            BarcodeFormat.RSS_EXPANDED
    );
}
 
开发者ID:yakovenkodenis,项目名称:Discounty,代码行数:17,代码来源:RSSExpandedReader.java

示例5: constructResult

import com.google.zxing.oned.rss.expanded.decoders.AbstractExpandedDecoder; //导入依赖的package包/类
static Result constructResult(List<ExpandedPair> pairs) throws NotFoundException{
  BitArray binary = BitArrayBuilder.buildBitArray(pairs);

  AbstractExpandedDecoder decoder = AbstractExpandedDecoder.createDecoder(binary);
  String resultingString = decoder.parseInformation();

  ResultPoint[] firstPoints = pairs.get(0).getFinderPattern().getResultPoints();
  ResultPoint[] lastPoints  = pairs.get(pairs.size() - 1).getFinderPattern().getResultPoints();

  return new Result(
        resultingString,
        null,
        new ResultPoint[]{firstPoints[0], firstPoints[1], lastPoints[0], lastPoints[1]},
        BarcodeFormat.RSS_EXPANDED
    );
}
 
开发者ID:yinglovezhuzhu,项目名称:ZxingCore,代码行数:17,代码来源:RSSExpandedReader.java

示例6: constructResult

import com.google.zxing.oned.rss.expanded.decoders.AbstractExpandedDecoder; //导入依赖的package包/类
private static Result constructResult(Vector pairs) throws NotFoundException{
  BitArray binary = BitArrayBuilder.buildBitArray(pairs);

  AbstractExpandedDecoder decoder = AbstractExpandedDecoder.createDecoder(binary);
  String resultingString = decoder.parseInformation();

  ResultPoint [] firstPoints = ((ExpandedPair)pairs.elementAt(0)).getFinderPattern().getResultPoints();
  ResultPoint [] lastPoints  = ((ExpandedPair)pairs.lastElement()).getFinderPattern().getResultPoints();

  return new Result(
        resultingString,
        null,
        new ResultPoint[]{firstPoints[0], firstPoints[1], lastPoints[0], lastPoints[1]},
        BarcodeFormat.RSS_EXPANDED
    );
}
 
开发者ID:saqimtiaz,项目名称:BibSearch,代码行数:17,代码来源:RSSExpandedReader.java

示例7: constructResult

import com.google.zxing.oned.rss.expanded.decoders.AbstractExpandedDecoder; //导入依赖的package包/类
static Result constructResult(List<ExpandedPair> pairs) throws NotFoundException,
        FormatException {
    String resultingString = AbstractExpandedDecoder.createDecoder(BitArrayBuilder
            .buildBitArray(pairs)).parseInformation();
    ResultPoint[] firstPoints = ((ExpandedPair) pairs.get(0)).getFinderPattern()
            .getResultPoints();
    ResultPoint[] lastPoints = ((ExpandedPair) pairs.get(pairs.size() - 1)).getFinderPattern
            ().getResultPoints();
    return new Result(resultingString, null, new ResultPoint[]{firstPoints[0],
            firstPoints[1], lastPoints[0], lastPoints[1]}, BarcodeFormat.RSS_EXPANDED);
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:12,代码来源:RSSExpandedReader.java

示例8: a

import com.google.zxing.oned.rss.expanded.decoders.AbstractExpandedDecoder; //导入依赖的package包/类
private static Result a(List list)
{
    String s = AbstractExpandedDecoder.createDecoder(com.google.zxing.oned.rss.expanded.a.a(list)).parseInformation();
    ResultPoint aresultpoint[] = ((b)list.get(0)).d().getResultPoints();
    ResultPoint aresultpoint1[] = ((b)list.get(-1 + list.size())).d().getResultPoints();
    ResultPoint aresultpoint2[] = new ResultPoint[4];
    aresultpoint2[0] = aresultpoint[0];
    aresultpoint2[1] = aresultpoint[1];
    aresultpoint2[2] = aresultpoint1[0];
    aresultpoint2[3] = aresultpoint1[1];
    return new Result(s, null, aresultpoint2, BarcodeFormat.RSS_EXPANDED);
}
 
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:13,代码来源:RSSExpandedReader.java

示例9: testNoAi

import com.google.zxing.oned.rss.expanded.decoders.AbstractExpandedDecoder; //导入依赖的package包/类
@Test
public void testNoAi() throws Exception {
  BitArray information = BinaryUtil.buildBitArrayFromString(" .......X ..XX..X. X.X....X .......X ....");

  AbstractExpandedDecoder decoder = AbstractExpandedDecoder.createDecoder(information);
  String decoded = decoder.parseInformation();
  assertEquals("(10)12A", decoded);
}
 
开发者ID:srowen,项目名称:zxing-bsplus,代码行数:9,代码来源:ExpandedInformationDecoderTest.java


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