* Represents some type of metadata about the result of the decoding that the decoder
* wishes to communicate back to the caller.
*
- * @author srowen@google.com (Sean Owen)
+ * @author Sean Owen
*/
public final class ResultMetadataType {
*/
public static final ResultMetadataType ORIENTATION = new ResultMetadataType();
+ /**
+ * <p>2D barcode formats typically encode text, but allow for a sort of 'byte mode'
+ * which is sometimes used to encode binary data. While {@link Result} makes available
+ * the complete raw bytes in the barcode for these formats, it does not offer the bytes
+ * from the byte segments alone.</p>
+ *
+ * <p>This maps to a {@link java.util.Vector} of byte arrays corresponding to the
+ * raw bytes in the byte segments in the barcode, in order.</p>
+ */
+ public static final ResultMetadataType BYTE_SEGMENTS = new ResultMetadataType();
+
+ /**
+ * Error correction level used, if applicable. The value type depends on the
+ * format, but is typically a String.
+ */
+ public static final ResultMetadataType ERROR_CORRECTION_LEVEL = new ResultMetadataType();
+
private ResultMetadataType() {
}
-}
\ No newline at end of file
+}