addCommand
Adds commands to the command buffer. Sends ESC/POS commands.
ESC/POS commands are not made public. For details, contact the dealer.
Syntax
public void addCommand(byte[] data) throws EposException
Parameter
data :
Specifies ESC/POS command as a character string.
Exceptions
When processing fails, EposException is thrown with one of the following error values.
Error status
ERR_PARAM
ERR_MEMORY
ERR_FAILURE
Example
try {
Builder builder = new Builder("TM-T88V", Builder.MODEL_ANK);
byte[] data = null;
///Process///
builder.addCommand(data);
} catch (EposException e) {
int errStatus = e.getErrorStatus();
}
86
Invalid parameter was passed.
Could not allocate memory.
An unspecified error occurred.
Description