2 * Copyright 2008 ZXing authors
\r
4 * Licensed under the Apache License, Version 2.0 (the "License");
\r
5 * you may not use this file except in compliance with the License.
\r
6 * You may obtain a copy of the License at
\r
8 * http://www.apache.org/licenses/LICENSE-2.0
\r
10 * Unless required by applicable law or agreed to in writing, software
\r
11 * distributed under the License is distributed on an "AS IS" BASIS,
\r
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 * See the License for the specific language governing permissions and
\r
14 * limitations under the License.
\r
17 namespace com.google.zxing
\r
20 /// <summary> Represents some type of metadata about the result of the decoding that the decoder
\r
21 /// wishes to communicate back to the caller.
\r
24 /// <author> Sean Owen
\r
26 /// <author>www.Redivivus.in (suraj.supekar@redivivus.in) - Ported from ZXING Java Source
\r
29 public sealed class ResultMetadataType
\r
32 // No, we can't use an enum here. J2ME doesn't support it.
\r
34 /// <summary> Unspecified, application-specific metadata. Maps to an unspecified {@link Object}.</summary>
\r
35 //UPGRADE_NOTE: Final was removed from the declaration of 'OTHER '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
\r
36 public static readonly ResultMetadataType OTHER = new ResultMetadataType();
\r
38 /// <summary> Denotes the likely approximate orientation of the barcode in the image. This value
\r
39 /// is given as degrees rotated clockwise from the normal, upright orientation.
\r
40 /// For example a 1D barcode which was found by reading top-to-bottom would be
\r
41 /// said to have orientation "90". This key maps to an {@link Integer} whose
\r
42 /// value is in the range [0,360).
\r
44 //UPGRADE_NOTE: Final was removed from the declaration of 'ORIENTATION '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
\r
45 public static readonly ResultMetadataType ORIENTATION = new ResultMetadataType();
\r
47 /// <summary> <p>2D barcode formats typically encode text, but allow for a sort of 'byte mode'
\r
48 /// which is sometimes used to encode binary data. While {@link Result} makes available
\r
49 /// the complete raw bytes in the barcode for these formats, it does not offer the bytes
\r
50 /// from the byte segments alone.</p>
\r
52 /// <p>This maps to a {@link java.util.Vector} of byte arrays corresponding to the
\r
53 /// raw bytes in the byte segments in the barcode, in order.</p>
\r
55 //UPGRADE_NOTE: Final was removed from the declaration of 'BYTE_SEGMENTS '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
\r
56 public static readonly ResultMetadataType BYTE_SEGMENTS = new ResultMetadataType();
\r
58 /// <summary> Error correction level used, if applicable. The value type depends on the
\r
59 /// format, but is typically a String.
\r
61 //UPGRADE_NOTE: Final was removed from the declaration of 'ERROR_CORRECTION_LEVEL '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
\r
62 public static readonly ResultMetadataType ERROR_CORRECTION_LEVEL = new ResultMetadataType();
\r
64 private ResultMetadataType()
\r