"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core/src/main/java/com/google/zxing/common/DecoderResult.java" between
zxing-zxing-3.4.1.tar.gz and zxing-zxing-3.5.0.tar.gz

About: ZXing ("zebra crossing") is a multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages. Info: Project is in maintenance mode (no active development).

DecoderResult.java  (zxing-zxing-3.4.1):DecoderResult.java  (zxing-zxing-3.5.0)
skipping to change at line 40 skipping to change at line 40
private final byte[] rawBytes; private final byte[] rawBytes;
private int numBits; private int numBits;
private final String text; private final String text;
private final List<byte[]> byteSegments; private final List<byte[]> byteSegments;
private final String ecLevel; private final String ecLevel;
private Integer errorsCorrected; private Integer errorsCorrected;
private Integer erasures; private Integer erasures;
private Object other; private Object other;
private final int structuredAppendParity; private final int structuredAppendParity;
private final int structuredAppendSequenceNumber; private final int structuredAppendSequenceNumber;
private final int symbologyModifier;
public DecoderResult(byte[] rawBytes, public DecoderResult(byte[] rawBytes,
String text, String text,
List<byte[]> byteSegments, List<byte[]> byteSegments,
String ecLevel) { String ecLevel) {
this(rawBytes, text, byteSegments, ecLevel, -1, -1); this(rawBytes, text, byteSegments, ecLevel, -1, -1, 0);
}
public DecoderResult(byte[] rawBytes,
String text,
List<byte[]> byteSegments,
String ecLevel,
int symbologyModifier) {
this(rawBytes, text, byteSegments, ecLevel, -1, -1, symbologyModifier);
} }
public DecoderResult(byte[] rawBytes, public DecoderResult(byte[] rawBytes,
String text, String text,
List<byte[]> byteSegments, List<byte[]> byteSegments,
String ecLevel, String ecLevel,
int saSequence, int saSequence,
int saParity) { int saParity) {
this(rawBytes, text, byteSegments, ecLevel, saSequence, saParity, 0);
}
public DecoderResult(byte[] rawBytes,
String text,
List<byte[]> byteSegments,
String ecLevel,
int saSequence,
int saParity,
int symbologyModifier) {
this.rawBytes = rawBytes; this.rawBytes = rawBytes;
this.numBits = rawBytes == null ? 0 : 8 * rawBytes.length; this.numBits = rawBytes == null ? 0 : 8 * rawBytes.length;
this.text = text; this.text = text;
this.byteSegments = byteSegments; this.byteSegments = byteSegments;
this.ecLevel = ecLevel; this.ecLevel = ecLevel;
this.structuredAppendParity = saParity; this.structuredAppendParity = saParity;
this.structuredAppendSequenceNumber = saSequence; this.structuredAppendSequenceNumber = saSequence;
this.symbologyModifier = symbologyModifier;
} }
/** /**
* @return raw bytes representing the result, or {@code null} if not applicabl e * @return raw bytes representing the result, or {@code null} if not applicabl e
*/ */
public byte[] getRawBytes() { public byte[] getRawBytes() {
return rawBytes; return rawBytes;
} }
/** /**
skipping to change at line 152 skipping to change at line 172
} }
public int getStructuredAppendParity() { public int getStructuredAppendParity() {
return structuredAppendParity; return structuredAppendParity;
} }
public int getStructuredAppendSequenceNumber() { public int getStructuredAppendSequenceNumber() {
return structuredAppendSequenceNumber; return structuredAppendSequenceNumber;
} }
public int getSymbologyModifier() {
return symbologyModifier;
}
} }
 End of changes. 5 change blocks. 
1 lines changed or deleted 25 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)