Remove unnecessary dependency from common to qrcode package

git-svn-id: https://zxing.googlecode.com/svn/trunk@1799 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2011-05-26 12:42:07 +00:00
parent 9371cc2930
commit ce30fae7be
2 changed files with 7 additions and 6 deletions

View file

@ -16,8 +16,6 @@
package com.google.zxing.common;
import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel;
import java.util.Vector;
/**
@ -32,9 +30,9 @@ public final class DecoderResult {
private final byte[] rawBytes;
private final String text;
private final Vector byteSegments;
private final ErrorCorrectionLevel ecLevel;
private final String ecLevel;
public DecoderResult(byte[] rawBytes, String text, Vector byteSegments, ErrorCorrectionLevel ecLevel) {
public DecoderResult(byte[] rawBytes, String text, Vector byteSegments, String ecLevel) {
if (rawBytes == null && text == null) {
throw new IllegalArgumentException();
}
@ -56,7 +54,7 @@ public final class DecoderResult {
return byteSegments;
}
public ErrorCorrectionLevel getECLevel() {
public String getECLevel() {
return ecLevel;
}

View file

@ -114,7 +114,10 @@ final class DecodedBitStreamParser {
}
} while (!mode.equals(Mode.TERMINATOR));
return new DecoderResult(bytes, result.toString(), byteSegments.isEmpty() ? null : byteSegments, ecLevel);
return new DecoderResult(bytes,
result.toString(),
byteSegments.isEmpty() ? null : byteSegments,
ecLevel.toString());
}
/**