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

项目:zxing-bsplus    文件:AbstractDecoderTest.java   
static void assertCorrectBinaryString(CharSequence binaryString,
                                      String expectedNumber) throws NotFoundException, FormatException {
  BitArray binary = BinaryUtil.buildBitArrayFromStringWithoutSpaces(binaryString);
  AbstractExpandedDecoder decoder = AbstractExpandedDecoder.createDecoder(binary);
  String result = decoder.parseInformation();
  assertEquals(expectedNumber, result);
}
项目:dev    文件:AbstractDecoderTest.java   
protected static void assertCorrectBinaryString(CharSequence binaryString,
                                                 String expectedNumber) throws NotFoundException {
    BitArray binary = BinaryUtil.buildBitArrayFromStringWithoutSpaces(binaryString);
    AbstractExpandedDecoder decoder = AbstractExpandedDecoder.createDecoder(binary);
    String result = decoder.parseInformation();
    assertEquals(expectedNumber, result);
}
项目:ZxingCore    文件:AbstractDecoderTest.java   
protected static void assertCorrectBinaryString(CharSequence binaryString,
                                                 String expectedNumber) throws NotFoundException {
    BitArray binary = BinaryUtil.buildBitArrayFromStringWithoutSpaces(binaryString);
    AbstractExpandedDecoder decoder = AbstractExpandedDecoder.createDecoder(binary);
    String result = decoder.parseInformation();
    assertEquals(expectedNumber, result);
}