public abstract class

FPBase

extends Object
java.lang.Object
   ↳ com.datecs.fiscalprinter.FPBase
Known Direct Subclasses

Summary

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
From class java.lang.Object

Constants

public static final int ENCODING_1251

Constant Value: 1251 (0x000004e3)

public static final int ENCODING_1252

Constant Value: 1252 (0x000004e4)

Public Constructors

public FPBase (InputStream in, OutputStream out, int encoding)

Public Methods

public final synchronized void close ()

public String customCommand (int cmd, String data)

Sends a custom command to the printer and returns the result

Parameters
cmd - command number, refer to the documentation
data - optional additional data to the command, can be null
Returns
  • - command response
Throws
IOException - raised upon communication error
FiscalPrinterException - raised when there was a problem executing the command

public boolean getAutoCutInputParams ()

public boolean getChkInputParams ()

public int getLanguageIndex ()

public byte[] getLastStatus ()

public boolean getStatusBitBol (int byteIndex, int bitIndex)

public boolean notDbl (String value)

public boolean notInt (String value)

public byte[] queryStatus ()

public void setAutoCutInputParams (boolean toValue)

public void setChkInputParams (boolean toValue)

public void setLanguageIndex (int toValue)

public double toDouble (String value)

public int toInt (String value)