public class HasarFiscalPacket extends AbstractFiscalPacket
STYLE_DOUBLE_HEIGHT, STYLE_DOUBLE_WIDTH, STYLE_EMPHASIZED, STYLE_NORMAL, STYLE_UNDERLINED
Constructor and Description |
---|
HasarFiscalPacket(java.lang.String encoding,
int baseRolloverYear) |
Modifier and Type | Method and Description |
---|---|
int |
getBaseRolloverYear()
Get the base roll-over year in use for dates.
|
int |
getCommandCode()
Get the command code of this packet.
|
int |
getDateDay(int field)
Get the day of month part of a date field (1 to 31).
|
int |
getDateMonth(int field)
Get the month of year part of a date field (1 to 12).
|
int |
getDateYear(int field)
Get the year part of a date field (full 4 digit value).
|
java.lang.String |
getEncoding()
Get the encoding in use for strings.
|
int |
getFiscalStatus()
Get the fiscal status of this response packet.
|
int |
getPrinterStatus()
Get the printer status of this response packet.
|
java.lang.String |
getString(int field)
Get a string field.
|
int |
getStringStyle(int field)
Get the style of a string field.
|
int |
getTimeHour(int field)
Get the hour part of a time field (0 to 23).
|
int |
getTimeMinute(int field)
Get the minute part of a time field (0 to 59).
|
int |
getTimeSecond(int field)
Get the second part of a time field (0 to 59).
|
void |
setCommandCode(int value)
Set the command code of this packet.
|
void |
setDate(int field,
int year,
int month,
int day)
Set a date field by specifying year (full 4 digit value), month of year (1 to 12) and day of month (1 to 31).
|
void |
setFiscalStatus(int value)
Set the fiscal status of this response packet.
|
void |
setPrinterStatus(int value)
Set the printer status of this response packet.
|
void |
setString(int field,
java.lang.String value)
Set a string field.
|
void |
setString(int field,
java.lang.String value,
int style)
Set a string field in the specified style.
|
void |
setTime(int field,
int hour,
int minute,
int second)
Set a time field by specifying hour (0 to 23), minute (0 to 59) and second (0 to 59).
|
java.lang.String |
toString()
Returns a string representation of the packet contents.
|
clear, clear, clone, equals, get, getBigDecimal, getBigInteger, getByte, getCopy, getCopy, getCopy, getDate, getDate, getDateAndTime, getDateAndTime, getDouble, getFloat, getHex16, getInt, getLength, getLong, getSize, set, setBigDecimal, setBigInteger, setByte, setCopy, setCopy, setDate, setDate, setDateAndTime, setDateAndTime, setDateAndTime, setDouble, setFloat, setHex16, setInt, setLong, setSize, toASCIIString, toHexString
public HasarFiscalPacket(java.lang.String encoding, int baseRolloverYear)
public java.lang.String toString()
FiscalPacket
toString
in interface FiscalPacket
toString
in class AbstractFiscalPacket
public java.lang.String getEncoding()
public int getBaseRolloverYear()
public void setString(int field, java.lang.String value)
FiscalPacket
public void setString(int field, java.lang.String value, int style)
FiscalPacket
public java.lang.String getString(int field)
FiscalPacket
public int getStringStyle(int field)
FiscalPacket
public void setDate(int field, int year, int month, int day)
FiscalPacket
public int getDateYear(int field)
FiscalPacket
public int getDateMonth(int field)
FiscalPacket
public int getDateDay(int field)
FiscalPacket
public void setTime(int field, int hour, int minute, int second)
FiscalPacket
public int getTimeHour(int field)
FiscalPacket
public int getTimeMinute(int field)
FiscalPacket
public int getTimeSecond(int field)
FiscalPacket
public void setCommandCode(int value)
FiscalPacket
public int getCommandCode()
FiscalPacket
public void setPrinterStatus(int value)
FiscalPacket
public int getPrinterStatus()
FiscalPacket
public void setFiscalStatus(int value)
FiscalPacket
public int getFiscalStatus()
FiscalPacket