Actually, let the scanner read codes using structured append -- just ignore these...
authorsrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Wed, 21 Jan 2009 21:07:00 +0000 (21:07 +0000)
committersrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Wed, 21 Jan 2009 21:07:00 +0000 (21:07 +0000)
git-svn-id: http://zxing.googlecode.com/svn/trunk@830 59b500cc-1b3d-0410-9834-0bbf25fbcc57

core/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParser.java

index 519abdb..76156dd 100644 (file)
@@ -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 {