public final class ModuleFactory
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static Module |
START_STOP
The start and stop character for the barcode
|
限定符和类型 | 方法和说明 |
---|---|
static java.lang.String |
getExtendedCharacter(char c)
Returns the string of characters from the standard encoding table that encode
the given extended character set character.
|
static int |
getIndex(java.lang.String key)
Returns the index of the given character in the encoding tables.
|
static Module |
getModule(java.lang.String key)
Returns the module that represents the specified character.
|
static Module |
getModuleForIndex(int index)
Returns the encoded module at the given index position.
|
static boolean |
hasModule(java.lang.String key,
boolean extendedMode)
Indicates whether the given key is represented in the default encoding
table that this module factory contains.
|
public static final Module START_STOP
public static Module getModule(java.lang.String key)
key
- The data character to get the encoding module forpublic static int getIndex(java.lang.String key)
key
- The data character sequence to get the index forpublic static boolean hasModule(java.lang.String key, boolean extendedMode)
public static Module getModuleForIndex(int index)
index
- The index to get the module forpublic static java.lang.String getExtendedCharacter(char c)
c
- The character from the extended ASCII set to encode