java.lang.Objectcom.epson.EpsonCom.EpsonTools
public class EpsonTools
EpsonTools Class
Constructor Summary | |
---|---|
EpsonTools()
|
Method Summary | |
---|---|
static java.util.Vector<java.lang.Byte> |
convertEscposToBinary(java.lang.String escpos)
------------------------------------------------------------------------------------- convertEscposToBinary Converts an EscPos string (like e.g. |
static java.util.Vector<java.lang.Byte> |
convertHexadecimalToBinary(java.util.Vector<java.lang.Byte> HexadecimalData)
------------------------------------------------------------------------------------- convertHexadecimalToBinary Converts data that is in ASCII hexadecimal format into binary data ASCII hexadecimal means that a binary value of e.g. |
static java.lang.String |
getErrorText(EpsonCom.ERROR_CODE errorcode)
------------------------------------------------------------------------------------- getErrorText Converts a numeric error code into the corresponding error text |
static java.lang.Boolean |
isEven(int number)
------------------------------------------------------------------------------------- isEven Checks if a int number is even |
static boolean |
isInteger(java.lang.String input)
------------------------------------------------------------------------------------- isInteger Checks if a string is purely numeric (without decimals) |
static byte |
xtod(byte c)
------------------------------------------------------------------------------------- xtod Converts a single hex character 0-F (ASCII) into decimal 0-15 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EpsonTools()
Method Detail |
---|
public static java.util.Vector<java.lang.Byte> convertHexadecimalToBinary(java.util.Vector<java.lang.Byte> HexadecimalData)
HexadecimalData
- the hexadecimal data that will be converted
public static byte xtod(byte c)
c
- byte with the hex character
public static java.util.Vector<java.lang.Byte> convertEscposToBinary(java.lang.String escpos)
escpos
- String with the ESC/POS
public static boolean isInteger(java.lang.String input)
input
- string
public static java.lang.String getErrorText(EpsonCom.ERROR_CODE errorcode)
errorcode:
- error code as defined in EpsonCom.ERROR_CODES enum
public static java.lang.Boolean isEven(int number)
number:
- the number to check