Add to result the raw, but parsed, bytes of byte segments in 2D barcodes
[zxing.git] / core / src / com / google / zxing / qrcode / decoder / Decoder.java
index a8be9e8..e1f34bc 100644 (file)
@@ -27,7 +27,7 @@ import com.google.zxing.common.reedsolomon.ReedSolomonException;
  * <p>The main class which implements QR Code decoding -- as opposed to locating and extracting\r
  * the QR Code from an image.</p>\r
  *\r
- * @author srowen@google.com (Sean Owen)\r
+ * @author Sean Owen\r
  */\r
 public final class Decoder {\r
 \r
@@ -97,8 +97,7 @@ public final class Decoder {
     }\r
 \r
     // Decode the contents of that stream of bytes\r
-    String text = DecodedBitStreamParser.decode(resultBytes, version);\r
-    return new DecoderResult(resultBytes, text);\r
+    return DecodedBitStreamParser.decode(resultBytes, version);\r
   }\r
 \r
   /**\r
@@ -118,7 +117,7 @@ public final class Decoder {
     }\r
     int numECCodewords = codewordBytes.length - numDataCodewords;\r
     try {\r
-      rsDecoder.decode(codewordsInts, numECCodewords, false);\r
+      rsDecoder.decode(codewordsInts, numECCodewords);\r
     } catch (ReedSolomonException rse) {\r
       throw new ReaderException(rse.toString());\r
     }\r