package com.google.zxing.common;
+import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel;
+
import java.util.Vector;
/**
private final byte[] rawBytes;
private final String text;
private final Vector byteSegments;
+ private final ErrorCorrectionLevel ecLevel;
- public DecoderResult(byte[] rawBytes, String text, Vector byteSegments) {
+ public DecoderResult(byte[] rawBytes, String text, Vector byteSegments, ErrorCorrectionLevel ecLevel) {
if (rawBytes == null && text == null) {
throw new IllegalArgumentException();
}
this.rawBytes = rawBytes;
this.text = text;
this.byteSegments = byteSegments;
+ this.ecLevel = ecLevel;
}
public byte[] getRawBytes() {
return byteSegments;
}
+ public ErrorCorrectionLevel getECLevel() {
+ return ecLevel;
+ }
+
}
\ No newline at end of file