From 112f97cd18aefe46f89b56e2791e5a1ba556daaf Mon Sep 17 00:00:00 2001 From: srowen Date: Wed, 21 Jan 2009 21:07:00 +0000 Subject: [PATCH] Actually, let the scanner read codes using structured append -- just ignore these segments and show whatever part of the overall message that this code encodes git-svn-id: http://zxing.googlecode.com/svn/trunk@830 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- .../google/zxing/qrcode/decoder/DecodedBitStreamParser.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java b/core/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java index 519abdbc..76156dd0 100644 --- a/core/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java +++ b/core/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java @@ -81,8 +81,9 @@ final class DecodedBitStreamParser { // We do little with FNC1 except alter the parsed result a bit according to the spec fc1InEffect = true; } else if (mode.equals(Mode.STRUCTURED_APPEND)) { - // not supported - throw ReaderException.getInstance(); + // not really supported; all we do is ignore it + // Read next 8 bits (symbol sequence #) and 8 bits (parity data), then continue + bits.readBits(16); } else if (mode.equals(Mode.ECI)) { // Count doesn't apply to ECI try { -- 2.20.1