public final class ModuleFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static Module |
START_STOP
The start and stop character for the barcode
|
| Modifier and Type | Method and Description |
|---|---|
static 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(String key)
Returns the index of the given character in the encoding tables.
|
static Module |
getModule(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(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(String key)
key - The data character to get the encoding module forpublic static int getIndex(String key)
key - The data character sequence to get the index forpublic static boolean hasModule(String key, boolean extendedMode)
public static Module getModuleForIndex(int index)
index - The index to get the module forpublic static String getExtendedCharacter(char c)
c - The character from the extended ASCII set to encodeCopyright © 2003-2013 barbecue.sourceforge.net. All Rights Reserved.