com.ibm.retail.saf.provider
Class Default4690CashReceipt
java.lang.Object
|
+--java.util.AbstractMap
|
+--java.util.HashMap
|
+--com.ibm.retail.saf.provider.POSInfoImpl
|
+--com.ibm.retail.saf.provider.Default4690CashReceipt
- All Implemented Interfaces:
- CashReceiptImage, java.lang.Cloneable, java.util.Map, POSInfo, java.io.Serializable
- public class Default4690CashReceipt
- extends POSInfoImpl
- implements CashReceiptImage
Image of cash receipt from an IBM 4690 POS terminal.
Raw print strings are in IBM 4610 printer format.
The attributes used are IBM 4610 control characters. Each control character is contained
within square brackets "[]" and preceded with "\x" to indicate a Hex representation.
"\" on its own would represent decimal representation.
e.g. a bold normal font line "You have saved $30 today" would be represented as:
"[\x1B][\x21][\x08] You have saved $30 today[\x0A]"
- See Also:
- Serialized Form
Field Summary |
(package private) java.util.List |
printLines
|
Fields inherited from class java.util.HashMap |
|
Fields inherited from class java.util.AbstractMap |
|
Method Summary |
void |
addPrintLine(com.ibm.retail.saf.provider.PrintLine pl)
|
int |
getNumberOfPrintLines()
Provides the number of print lines in the filtered (no attributes) receipt |
java.util.Iterator |
getPrintLines()
Provides an iterator for the filtered print line objects on the cash receipt.
|
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
printLines
java.util.List printLines
Default4690CashReceipt
public Default4690CashReceipt()
getPrintLines
public java.util.Iterator getPrintLines()
- Description copied from interface:
CashReceiptImage
- Provides an iterator for the filtered print line objects on the cash receipt.
Each entry returned by the iterator is a PrintLine
object.
- Specified by:
getPrintLines
in interface CashReceiptImage
- Returns:
- iterator over the print line text strings
getNumberOfPrintLines
public int getNumberOfPrintLines()
- Description copied from interface:
CashReceiptImage
- Provides the number of print lines in the filtered (no attributes) receipt
- Specified by:
getNumberOfPrintLines
in interface CashReceiptImage
- Returns:
- number of lines
addPrintLine
public void addPrintLine(com.ibm.retail.saf.provider.PrintLine pl)