FiscalPrinter

Summary: Constants | Ctors | Methods | Inherited Methods | [Expand All]
public abstract class

# FPBase

extends Object

java.lang.Object
↳ | com.datecs.fiscalprinter.FPBase

Known Direct Subclasses DP25ROU
DP25ROU |

## 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
boolean | equals(Object arg0)
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)

## 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 ()

##### Throws

FiscalPrinterException |
IOException |

#### 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)