java.lang.Object | |
↳ | com.datecs.fiscalprinter.FPBase |
![]() |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | ENCODING_1251 | ||||||||||
int | ENCODING_1252 |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
FPBase(InputStream in, OutputStream out, int encoding) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized final void | close() | ||||||||||
String |
customCommand(int cmd, String data)
Sends a custom command to the printer and returns the result
| ||||||||||
boolean | getAutoCutInputParams() | ||||||||||
boolean | getChkInputParams() | ||||||||||
int | getLanguageIndex() | ||||||||||
byte[] | getLastStatus() | ||||||||||
boolean | getStatusBitBol(int byteIndex, int bitIndex) | ||||||||||
boolean | notDbl(String value) | ||||||||||
boolean | notInt(String value) | ||||||||||
byte[] | queryStatus() | ||||||||||
void | setAutoCutInputParams(boolean toValue) | ||||||||||
void | setChkInputParams(boolean toValue) | ||||||||||
void | setLanguageIndex(int toValue) | ||||||||||
double | toDouble(String value) | ||||||||||
int | toInt(String value) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Sends a custom command to the printer and returns the result
cmd | - command number, refer to the documentation |
---|---|
data | - optional additional data to the command, can be null |
IOException | - raised upon communication error |
---|---|
FiscalPrinterException | - raised when there was a problem executing the command |