Package com.google.zxing
Enum BarcodeFormat
- All Implemented Interfaces:
Serializable
,Comparable<BarcodeFormat>
,java.lang.constant.Constable
public enum BarcodeFormat extends Enum<BarcodeFormat>
Enumerates barcode formats known to this package. Please keep alphabetized.
- Author:
- Sean Owen
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description AZTEC
Aztec 2D barcode format.CODABAR
CODABAR 1D format.CODE_128
Code 128 1D format.CODE_39
Code 39 1D format.CODE_93
Code 93 1D format.DATA_MATRIX
Data Matrix 2D barcode format.EAN_13
EAN-13 1D format.EAN_8
EAN-8 1D format.ITF
ITF (Interleaved Two of Five) 1D format.MAXICODE
MaxiCode 2D barcode format.PDF_417
PDF417 format.QR_CODE
QR Code 2D barcode format.RSS_14
RSS 14RSS_EXPANDED
RSS EXPANDEDUPC_A
UPC-A 1D format.UPC_E
UPC-E 1D format.UPC_EAN_EXTENSION
UPC/EAN extension format. -
Method Summary
Modifier and Type Method Description static BarcodeFormat
valueOf(String name)
Returns the enum constant of this type with the specified name.static BarcodeFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AZTEC
Aztec 2D barcode format. -
CODABAR
CODABAR 1D format. -
CODE_39
Code 39 1D format. -
CODE_93
Code 93 1D format. -
CODE_128
Code 128 1D format. -
DATA_MATRIX
Data Matrix 2D barcode format. -
EAN_8
EAN-8 1D format. -
EAN_13
EAN-13 1D format. -
ITF
ITF (Interleaved Two of Five) 1D format. -
MAXICODE
MaxiCode 2D barcode format. -
PDF_417
PDF417 format. -
QR_CODE
QR Code 2D barcode format. -
RSS_14
RSS 14 -
RSS_EXPANDED
RSS EXPANDED -
UPC_A
UPC-A 1D format. -
UPC_E
UPC-E 1D format. -
UPC_EAN_EXTENSION
UPC/EAN extension format. Not a stand-alone format.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-