HanXinModes
Inheritance: java.lang.Object, java.lang.Enum
public enum HanXinModes extends Enum<HanXinModes>
Han Xin Code encoding mode. It is recommended to use Auto with ASCII / Chinese characters or Unicode for Unicode characters.
Fields
Field | Description |
---|---|
AUTO | Sequence of Numeric, Text, ECI, Binary Bytes and 4 GB18030 modes changing automatically. |
BINARY | Binary byte mode encodes binary data in any form and encodes them in their binary byte. |
COMMON_CHINESE_REGION_ONE | Every common Chinese Character in Region One is represented by 12 bits. |
COMMON_CHINESE_REGION_TWO | Every common Chinese Character in Region Two is represented by 12 bits. |
ECI | Extended Channel Interpretation (ECI) mode |
GB_18030_FOUR_BYTE | Every GB18030 4-byte Region character is represented by 21 bits. |
GB_18030_TWO_BYTE | Every GB18030 2-byte Region character is represented by 15 bits. |
GS_1 | GS1 mode indicates the data represented in Han Xin Code is GS1 data of GS1 system defined by GS1 General Specification. |
NUMERIC | Numeric mode encodes data from decimal digit set (digits 0-9, byte values 30HEX to 39HEX). |
TEXT | Text mode encodes data from common symbols defined in ISO/IEC 646, i.e. |
UNICODE | Unicode mode designs a way to represent any text data reference to UTF8 encoding/charset in Han Xin Code. |
URI | URI mode indicates the data represented in Han Xin Code is Uniform Resource Identifier (URI) reference to RFC 3986. |
Methods
AUTO
public static final HanXinModes AUTO
Sequence of Numeric, Text, ECI, Binary Bytes and 4 GB18030 modes changing automatically.
BINARY
public static final HanXinModes BINARY
Binary byte mode encodes binary data in any form and encodes them in their binary byte. Every byte in Binary Byte mode is represented by 8 bits.
COMMON_CHINESE_REGION_ONE
public static final HanXinModes COMMON_CHINESE_REGION_ONE
Every common Chinese Character in Region One is represented by 12 bits. Common Chinese Characters in Region one includes characters whose first byte value is in the range of B0HEX to D7HEX and second byte value is in the range of A1HEX to FEHEX (3760 characters), and characters whose first byte value is in the range of A1HEX to A3HEX, and second byte value is in the range of A1HEX to FEHEX (282 characters), and characters whose byte values are in the range of A8A1HEX to A8C0HEX (32 characters).
COMMON_CHINESE_REGION_TWO
public static final HanXinModes COMMON_CHINESE_REGION_TWO
Every common Chinese Character in Region Two is represented by 12 bits. Common Chinese Characters in Region Two which includes character whose first byte value is in the range of D8HEX to F7HEX, and second byte value is in the range of A1HEX to FEHEX.
ECI
public static final HanXinModes ECI
Extended Channel Interpretation (ECI) mode
GB_18030_FOUR_BYTE
public static final HanXinModes GB_18030_FOUR_BYTE
Every GB18030 4-byte Region character is represented by 21 bits. GB18030 4-byte Region encodes data from all characters in GB18030 four-byte region (i.e., characters whose first byte value is in the range of 81HEX to FEHEX, and second byte value is in the range of 30HEX to 39HEX, and third byte value is in the range of 81HEX to FEHEX, and fourth byte value is in the range of 30HEXto 39HEX).
GB_18030_TWO_BYTE
public static final HanXinModes GB_18030_TWO_BYTE
Every GB18030 2-byte Region character is represented by 15 bits. The GB18030 2-byte Region encodes data from all characters (including the common Chinese Characters in Regions One and Two) in GB18030 double-byte region, (i.e., Chinese characters whose first byte value is in the range of 81HEX to FEHEX and second byte value is in the range of 40HEX to 7EHEX or 80HEX to FEHEX).
GS_1
public static final HanXinModes GS_1
GS1 mode indicates the data represented in Han Xin Code is GS1 data of GS1 system defined by GS1 General Specification. Example of input string: “(01)03453120000011(17)191125(10)ABCD1234(21)10”.
NUMERIC
public static final HanXinModes NUMERIC
Numeric mode encodes data from decimal digit set (digits 0-9, byte values 30HEX to 39HEX). Normally, 3 data characters are represented by 10 bit.
TEXT
public static final HanXinModes TEXT
Text mode encodes data from common symbols defined in ISO/IEC 646, i.e. byte values 00 HEX to 1B HEX and 20 HEX to 7F HEX.
UNICODE
public static final HanXinModes UNICODE
Unicode mode designs a way to represent any text data reference to UTF8 encoding/charset in Han Xin Code.
URI
public static final HanXinModes URI
URI mode indicates the data represented in Han Xin Code is Uniform Resource Identifier (URI) reference to RFC 3986.
valueOf(Class arg0, String arg1)
public static T <T>valueOf(Class<T> arg0, String arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Class | |
arg1 | java.lang.String |
Returns: T
compareTo(E arg0)
public final int compareTo(E arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | E |
Returns: int
equals(Object arg0)
public final boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getDeclaringClass()
public final Class<E> getDeclaringClass()
Returns:
java.lang.Class
getValue()
public int getValue()
Returns: int
hashCode()
public final int hashCode()
Returns: int
name()
public final String name()
Returns: java.lang.String
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
ordinal()
public final int ordinal()
Returns: int
toString()
public String toString()
Returns: java.lang.String
valueOf(String name)
public static HanXinModes valueOf(String name)
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.lang.String |
Returns: com.aspose.barcode.generation.HanXinModes
values()
public static HanXinModes[] values()
Returns: com.aspose.barcode.generation.HanXinModes[]
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |