projects
/
zxing.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add to result the raw, but parsed, bytes of byte segments in 2D barcodes
[zxing.git]
/
core
/
src
/
com
/
google
/
zxing
/
common
/
DecoderResult.java
diff --git
a/core/src/com/google/zxing/common/DecoderResult.java
b/core/src/com/google/zxing/common/DecoderResult.java
index
065fd1c
..
137987c
100644
(file)
--- a/
core/src/com/google/zxing/common/DecoderResult.java
+++ b/
core/src/com/google/zxing/common/DecoderResult.java
@@
-16,6
+16,8
@@
package com.google.zxing.common;
package com.google.zxing.common;
+import java.util.Vector;
+
/**
* <p>Encapsulates the result of decoding a matrix of bits. This typically
* applies to 2D barcode formats. For now it contains the raw bytes obtained,
/**
* <p>Encapsulates the result of decoding a matrix of bits. This typically
* applies to 2D barcode formats. For now it contains the raw bytes obtained,
@@
-27,13
+29,15
@@
public final class DecoderResult {
private final byte[] rawBytes;
private final String text;
private final byte[] rawBytes;
private final String text;
+ private final Vector byteSegments;
- public DecoderResult(byte[] rawBytes, String text) {
+ public DecoderResult(byte[] rawBytes, String text
, Vector byteSegments
) {
if (rawBytes == null && text == null) {
throw new IllegalArgumentException();
}
this.rawBytes = rawBytes;
this.text = text;
if (rawBytes == null && text == null) {
throw new IllegalArgumentException();
}
this.rawBytes = rawBytes;
this.text = text;
+ this.byteSegments = byteSegments;
}
public byte[] getRawBytes() {
}
public byte[] getRawBytes() {
@@
-44,4
+48,8
@@
public final class DecoderResult {
return text;
}
return text;
}
+ public Vector getByteSegments() {
+ return byteSegments;
+ }
+
}
\ No newline at end of file
}
\ No newline at end of file