com.google.zxing
Class ResultMetadataType

java.lang.Object
  extended by com.google.zxing.ResultMetadataType

public final class ResultMetadataType
extends Object

Represents some type of metadata about the result of the decoding that the decoder wishes to communicate back to the caller.

Since:
BlackBerry API 6.0.0

Field Summary
static ResultMetadataType BYTE_SEGMENTS
          2D barcode formats typically encode text, but allow for a sort of 'byte mode' which is sometimes used to encode binary data.
static ResultMetadataType ERROR_CORRECTION_LEVEL
          Error correction level used, if applicable.
static ResultMetadataType ISSUE_NUMBER
          For some periodicals, indicates the issue number as an Integer.
static ResultMetadataType ORIENTATION
          Denotes the likely approximate orientation of the barcode in the image.
static ResultMetadataType OTHER
          Unspecified, application-specific metadata.
static ResultMetadataType POSSIBLE_COUNTRY
          For some products, the possible country of manufacture as a String denoting the ISO country code.
static ResultMetadataType SUGGESTED_PRICE
          For some products, indicates the suggested retail price in the barcode as a formatted String.
 
Method Summary
 String getName()
           
 String toString()
          Returns a string representation of the object.
static ResultMetadataType valueOf(String name)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 



Field Detail

OTHER

public static final ResultMetadataType OTHER
Unspecified, application-specific metadata. Maps to an unspecified Object.

Since:
BlackBerry API 6.0.0

ORIENTATION

public static final ResultMetadataType ORIENTATION
Denotes the likely approximate orientation of the barcode in the image. This value is given as degrees rotated clockwise from the normal, upright orientation. For example a 1D barcode which was found by reading top-to-bottom would be said to have orientation "90". This key maps to an Integer whose value is in the range [0,360).

Since:
BlackBerry API 6.0.0

BYTE_SEGMENTS

public static final ResultMetadataType BYTE_SEGMENTS

2D barcode formats typically encode text, but allow for a sort of 'byte mode' which is sometimes used to encode binary data. While Result makes available the complete raw bytes in the barcode for these formats, it does not offer the bytes from the byte segments alone.

This maps to a Vector of byte arrays corresponding to the raw bytes in the byte segments in the barcode, in order.

Since:
BlackBerry API 6.0.0

ERROR_CORRECTION_LEVEL

public static final ResultMetadataType ERROR_CORRECTION_LEVEL
Error correction level used, if applicable. The value type depends on the format, but is typically a String.

Since:
BlackBerry API 6.0.0

ISSUE_NUMBER

public static final ResultMetadataType ISSUE_NUMBER
For some periodicals, indicates the issue number as an Integer.

Since:
BlackBerry API 7.0.0

SUGGESTED_PRICE

public static final ResultMetadataType SUGGESTED_PRICE
For some products, indicates the suggested retail price in the barcode as a formatted String.

Since:
BlackBerry API 7.0.0

POSSIBLE_COUNTRY

public static final ResultMetadataType POSSIBLE_COUNTRY
For some products, the possible country of manufacture as a String denoting the ISO country code. Some map to multiple possible countries, like "US/CA".

Since:
BlackBerry API 7.0.0


Method Detail

getName

public String getName()
Since:
BlackBerry API 7.0.0

toString

public String toString()
Description copied from class: Object
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Overrides:
toString in class Object
Returns:
a string representation of the object.
Since:
BlackBerry API 7.0.0

valueOf

public static ResultMetadataType valueOf(String name)
Since:
BlackBerry API 7.0.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal