Interface POSPrinterInterface
- All Superinterfaces:
JposBaseInterface
- All Known Implementing Classes:
POSPrinter
,POSPrinterProperties
Interface for methods that implement property setter and method calls for the POSPrinter device category.
For details about properties, methods and method parameters, see UPOS specification, chapter POS Printer.
Further details about error handling can be found in introduction - Device Behavior Models - Errors.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
beginInsertion(int timeout)
Final part of BeginInsertion method.void
beginRemoval(int timeout)
Final part of BeginRemoval method.void
cartridgeNotify(int notify)
Final part of setting CartridgeNotify.void
changePrintSide(int side)
Final part of ChangePrintSide method.void
characterSet(int i)
Final part of setting CharacterSet.void
Final part of ClearPrintArea method.cutPaper(int percentage)
Validation part of CutPaper method.void
Final part of CutPaper method.drawRuledLine(int station, String positionList, int lineDirection, int lineWidth, int lineStyle, int lineColor)
Validation part of DrawRuledLine method.void
drawRuledLine(DrawRuledLine request)
Final part of DrawRuledLine method.void
Final part of EndInsertion method.void
Final part of EndRemoval method.getLogoData(boolean top)
This method will be called whenever print data contain a logo print sequence ESC|tL or ESC|bL.void
jrnCurrentCartridge(int i)
Final part of setting JrnCurrentCartridge.void
jrnLetterQuality(boolean i)
Final part of setting JrnLetterQuality.void
jrnLineChars(int i)
Final part of setting JrnLineChars.void
jrnLineHeight(int i)
Final part of setting JrnLineHeight.void
jrnLineSpacing(int i)
Final part of setting JrnLineSpacing.void
mapCharacterSet(boolean i)
Final part of setting MapCharacterSet.void
mapMode(int i)
Final part of setting MapMode.markFeed(int type)
Validation part of MarkFeed method.void
Final part of MarkFeed method.void
pageModeHorizontalPosition(int i)
Final part of setting PageModeHorizontalPosition.pageModePrint(int control)
Validation part of PageModePrint method.void
pageModePrint(PageModePrint request)
Final part of PageModePrint method.void
Final part of setting PageModePrintArea.void
pageModePrintDirection(int i)
Final part of setting PageModePrintDirection.void
pageModeStation(int i)
Final part of setting PageModeStation.void
pageModeVerticalPosition(int i)
Final part of setting PageModeVerticalPosition.printBarCode(int station, String data, int symbology, int height, int width, int alignment, int textPosition)
Validation part of PrintBarCode method.void
printBarCode(PrintBarCode request)
Final part of PrintBarCode method.printBitmap(int station, String fileName, int width, int alignment)
Validation part of PrintBitmap method.void
printBitmap(PrintBitmap request)
Final part of PrintBitmap method.printImmediate(int station, String data)
Validation part of PrintImmediate method.printMemoryBitmap(int station, byte[] data, int type, int width, int alignment)
Validation part of PrintMemoryBitmap method.void
printMemoryBitmap(PrintMemoryBitmap request)
Final part of PrintMemoryBitmap method.printNormal(int station, String data)
Validation part of PrintNormal method.void
printNormal(PrintNormal request)
Final part of PrintNormal method.printTwoNormal(int stations, String data1, String data2)
Validation part of PrintTwoNormal method.void
printTwoNormal(PrintTwoNormal request)
Final part of PrintTwoNormal method.void
recCurrentCartridge(int i)
Final part of setting RecCurrentCartridge.void
recLetterQuality(boolean i)
Final part of setting RecLetterQuality.void
recLineChars(int i)
Final part of setting RecLineChars.void
recLineHeight(int i)
Final part of setting RecLineHeight.void
recLineSpacing(int i)
Final part of setting RecLineSpacing.rotatePrint(int station, int rotation)
Validation part of RotatePrint method.void
rotatePrint(RotatePrint request)
Final part of RotatePrint method.void
rotateSpecial(int special)
Final part of setting RotateSpecial.void
Final part of SetBitmap method.void
Final part of SetLogo method.void
slpCurrentCartridge(int i)
Final part of setting SlpCurrentCartridge.void
slpLetterQuality(boolean i)
Final part of setting SlpLetterQuality.void
slpLineChars(int i)
Final part of setting SlpLineChars.void
slpLineHeight(int i)
Final part of setting SlpLineHeight.void
slpLineSpacing(int i)
Final part of setting SlpLineSpacing.transactionPrint(int station, int control)
Validation part of TransactionPrint method.void
transactionPrint(TransactionPrint request)
Final part of TransactionPrint method.void
validateData(int station, POSPrinterService.ControlChar ctrl)
Validate control character.void
validateData(int station, POSPrinterService.EscAlignment esc)
Validate alignment sequence.void
validateData(int station, POSPrinterService.EscBarcode esc)
Validate barcode sequence.void
validateData(int station, POSPrinterService.EscBitmap esc)
Validate bitmap sequence.void
validateData(int station, POSPrinterService.EscColor esc)
Validate color sequences.void
validateData(int station, POSPrinterService.EscCut esc)
Validate cut sequence.void
validateData(int station, POSPrinterService.EscEmbedded esc)
Validate embedded data sequence.void
validateData(int station, POSPrinterService.EscFeed esc)
Validate feed sequence.void
validateData(int station, POSPrinterService.EscFontTypeface esc)
Validate font typeface selection sequence.void
validateData(int station, POSPrinterService.EscLine esc)
Validate combined line printing sequence.void
validateData(int station, POSPrinterService.EscLogo esc)
Validate logo sequence.void
validateData(int station, POSPrinterService.EscNormalize esc)
Validate normalize escape sequence.void
validateData(int station, POSPrinterService.EscRuledLine esc)
Validate ruled line escape sequence.void
validateData(int station, POSPrinterService.EscScale esc)
Validate print size sequence.void
validateData(int station, POSPrinterService.EscShade esc)
Validate shading sequence.void
validateData(int station, POSPrinterService.EscSimple esc)
Validate attribute setting sequences.void
validateData(int station, POSPrinterService.EscStamp esc)
Validate stamp sequence.void
validateData(int station, POSPrinterService.EscUnknown esc)
Validate unknown sequence.void
validateData(int station, POSPrinterService.PrintData data)
Validate printable character sequence.void
validateData(int station, POSPrinterService.PrintDataPart data)
Deprecated.void
validateData(int station, String data)
Final part of ValidateData method.Methods inherited from interface de.gmxhome.conrad.jpos.jpos_base.JposBaseInterface
asyncMode, autoDisable, checkHealth, claim, clearInput, clearOutput, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, handlePowerStateOnEnable, newJposOutputRequest, open, powerNotify, release, removeFromPropertySetList, resetStatistics, retrieveStatistics, retryInput, retryOutput, unitDataCount, updateFirmware, updateFirmware, updateStatistics
-
Method Details
-
cartridgeNotify
void cartridgeNotify(int notify) throws jpos.JposExceptionFinal part of setting CartridgeNotify. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is disabled,
- CapJrnCartridgeSensor, CapRecCartridgeSensor or CapSlpCartridgeSensor is not 0,
- The new value is one of the predefined values,
- internal property AllowAlwaysSetProperties is true or notify equals the previous value of CartridgeNotify.
- Parameters:
notify
- New CartridgeNotify value- Throws:
jpos.JposException
- If an error occurs
-
characterSet
void characterSet(int i) throws jpos.JposExceptionFinal part of setting CharacterSet. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapJrnCartridgeSensor, CapRecCartridgeSensor or CapSlpCartridgeSensor is not 0,
- The new value is one of the values specified in CharacterSetList.
- Parameters:
i
- New character set value- Throws:
jpos.JposException
- If an error occurs
-
jrnCurrentCartridge
void jrnCurrentCartridge(int i) throws jpos.JposExceptionFinal part of setting JrnCurrentCartridge. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapJrnPresent is true: New value is 0,
- CapJrnPresent is false: New value is one of the cartridge values specified in CapJrnColor.
- Parameters:
i
- New color value- Throws:
jpos.JposException
- If an error occurs
-
jrnLetterQuality
void jrnLetterQuality(boolean i) throws jpos.JposExceptionFinal part of setting JrnLetterQuality. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapJrnPresent is true.
- Parameters:
i
- New JrnLetterQuality value- Throws:
jpos.JposException
- If an error occurs
-
jrnLineChars
void jrnLineChars(int i) throws jpos.JposExceptionFinal part of setting JrnLineChars. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapJrnPresent is true,
- The new value is ≥ 0 and ≤ the maximum value specified in JrnLineCharsList.
- Parameters:
i
- New JrnLineChars value- Throws:
jpos.JposException
- If an error occurs
-
jrnLineHeight
void jrnLineHeight(int i) throws jpos.JposExceptionFinal part of setting JrnLineHeight. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapJrnPresent is true.
- Parameters:
i
- New JrnLineHeight value- Throws:
jpos.JposException
- If an error occurs
-
jrnLineSpacing
void jrnLineSpacing(int i) throws jpos.JposExceptionFinal part of setting JrnLineSpacing. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapJrnPresent is true.
- Parameters:
i
- New JrnLineSpacing value- Throws:
jpos.JposException
- If an error occurs
-
mapCharacterSet
void mapCharacterSet(boolean i) throws jpos.JposExceptionFinal part of setting MapCharacterSet. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapMapCharacterSet is true or the new value is false.
- Parameters:
i
- New MapCharacterSet value- Throws:
jpos.JposException
- If an error occurs
-
mapMode
void mapMode(int i) throws jpos.JposExceptionFinal part of setting MapMode. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- The new value is one of MM_DOTS, MM_TWIPS, MM_ENGLISH or MM_METRIC.
- Parameters:
i
- New MapMode value- Throws:
jpos.JposException
- If an error occurs
-
pageModeHorizontalPosition
void pageModeHorizontalPosition(int i) throws jpos.JposExceptionFinal part of setting PageModeHorizontalPosition. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PageModeStation is not 0.
- Parameters:
i
- New PageModeHorizontalPosition value- Throws:
jpos.JposException
- If an error occurs
-
pageModePrintArea
Final part of setting PageModePrintArea. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PageModeStation is not 0,
- The new value consists of 4 non-negative values,
- The area does not exceed the paper width specified by RecLineWidth or SlpLineWidth,
- If PageModeStation = S_SLIP and SlpMaxLines > 0, the area does not exceed the paper height specified by SlpLineHeight and SlpMaxLines.
- Parameters:
i
- New PageModePrintArea value- Throws:
jpos.JposException
- If an error occurs
-
pageModePrintDirection
void pageModePrintDirection(int i) throws jpos.JposExceptionFinal part of setting PageModePrintDirection. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PageModeStation is not 0,
- The new value is one of PD_TOP_TO_BOTTOM, PD_BOTTOM_TO_TOP, PD_RIGHT_TO_LEFT or PD_LEFT_TO_RIGHT.
- Parameters:
i
- New PageModePrintDirection value- Throws:
jpos.JposException
- If an error occurs
-
pageModeStation
void pageModeStation(int i) throws jpos.JposExceptionFinal part of setting PageModeStation. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- New PageModeStation value is S_RECEIPT or S_SLIP,
- The selected station supports page mode (CapRecPageMode or CapSlpPageMode is true).
- Parameters:
i
- New PageModeStation value- Throws:
jpos.JposException
- If an error occurs
-
pageModeVerticalPosition
void pageModeVerticalPosition(int i) throws jpos.JposExceptionFinal part of setting PageModeVerticalPosition. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PageModeStation is not 0.
- Parameters:
i
- New PageModeVerticalPosition value- Throws:
jpos.JposException
- If an error occurs
-
recCurrentCartridge
void recCurrentCartridge(int i) throws jpos.JposExceptionFinal part of setting RecCurrentCartridge. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapRecPresent is true: New value is 0,
- CapRecPresent is false: New value is one of the cartridge values specified in CapRecColor.
- Parameters:
i
- New color value- Throws:
jpos.JposException
- If an error occurs
-
recLetterQuality
void recLetterQuality(boolean i) throws jpos.JposExceptionFinal part of setting RecLetterQuality. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapRecPresent is true.
- Parameters:
i
- New RecLetterQuality value- Throws:
jpos.JposException
- If an error occurs
-
recLineChars
void recLineChars(int i) throws jpos.JposExceptionFinal part of setting RecLineChars. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapRecPresent is true,
- The new value is ≥ 0 and ≤ the maximum value specified in RecLineCharsList.
- Parameters:
i
- New RecLineChars value- Throws:
jpos.JposException
- If an error occurs
-
recLineHeight
void recLineHeight(int i) throws jpos.JposExceptionFinal part of setting RecLineHeight. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapRecPresent is true.
- Parameters:
i
- New RecLineHeight value- Throws:
jpos.JposException
- If an error occurs
-
recLineSpacing
void recLineSpacing(int i) throws jpos.JposExceptionFinal part of setting RecLineSpacing. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapRecPresent is true.
- Parameters:
i
- New RecLineSpacing value- Throws:
jpos.JposException
- If an error occurs
-
rotateSpecial
void rotateSpecial(int special) throws jpos.JposExceptionFinal part of setting RotateSpecial. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is not closed,
- CapRecBarCode or CapSlpBarCode is true,
- internal property AllowAlwaysSetProperties is true or special equals the previous value of RotateSpecial.
- Parameters:
special
- New RotateSpecial value- Throws:
jpos.JposException
- If an error occurs
-
slpCurrentCartridge
void slpCurrentCartridge(int i) throws jpos.JposExceptionFinal part of setting SlpCurrentCartridge. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent is true: New value is 0,
- CapSlpPresent is false: New value is one of the cartridge values specified in CapSlpColor.
- Parameters:
i
- New color value- Throws:
jpos.JposException
- If an error occurs
-
slpLetterQuality
void slpLetterQuality(boolean i) throws jpos.JposExceptionFinal part of setting SlpLetterQuality. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent is true.
- Parameters:
i
- New SlpLetterQuality value- Throws:
jpos.JposException
- If an error occurs
-
slpLineChars
void slpLineChars(int i) throws jpos.JposExceptionFinal part of setting SlpLineChars. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent is true,
- The new value is ≥ 0 and ≤ the maximum value specified in SlpLineCharsList.
- Parameters:
i
- New SlpLineChars value- Throws:
jpos.JposException
- If an error occurs
-
slpLineHeight
void slpLineHeight(int i) throws jpos.JposExceptionFinal part of setting SlpLineHeight. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent is true.
- Parameters:
i
- New SlpLineHeight value- Throws:
jpos.JposException
- If an error occurs
-
slpLineSpacing
void slpLineSpacing(int i) throws jpos.JposExceptionFinal part of setting SlpLineSpacing. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent is true.
- Parameters:
i
- New SlpLineSpacing value- Throws:
jpos.JposException
- If an error occurs
-
beginInsertion
void beginInsertion(int timeout) throws jpos.JposExceptionFinal part of BeginInsertion method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent is true,
- Asynchronous output or error handling is in progress,
- The timeout is ≥ 0 or JPOS_FOREVER.
- Parameters:
timeout
- See UPOS specification, method BeginInsertion.- Throws:
jpos.JposException
- See UPOS specification, method DisplayText.
-
beginRemoval
void beginRemoval(int timeout) throws jpos.JposExceptionFinal part of BeginRemoval method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent is true,
- Asynchronous output or error handling is not in progress,
- The timeout is ≥ 0 or JPOS_FOREVER.
- Parameters:
timeout
- See UPOS specification, method BeginRemoval.- Throws:
jpos.JposException
- See UPOS specification, method DisplayText.
-
changePrintSide
void changePrintSide(int side) throws jpos.JposExceptionFinal part of ChangePrintSide method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent and CapSlpBothSidesPrint are true,
- Asynchronous output or error handling is not in progress,
- The new side value is PS_OPPOSITE, PS_SIDE1 or PS_SIDE2.
- Parameters:
side
- See UPOS specification, method ChangePrintSide.- Throws:
jpos.JposException
- See UPOS specification, method DisplayText.
-
clearPrintArea
void clearPrintArea() throws jpos.JposExceptionFinal part of ClearPrintArea method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PageModeStation in not 0.
- Throws:
jpos.JposException
- See UPOS specification, method ClearPrintArea.
-
endInsertion
void endInsertion() throws jpos.JposExceptionFinal part of EndInsertion method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent is true,
- Device is not in insertion mode,
- Asynchronous output or error handling is not in progress.
- Throws:
jpos.JposException
- See UPOS specification, method EndInsertion.
-
endRemoval
void endRemoval() throws jpos.JposExceptionFinal part of EndRemoval method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent is true,
- Device is not in removal mode,
- Asynchronous output or error handling is not in progress.
- Throws:
jpos.JposException
- See UPOS specification, method EndRemoval.
-
printImmediate
Validation part of PrintImmediate method. For details, see UPOS specification. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous (high-priority) execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Selected station is S_JOURNAL, S_RECEIPT or S_SLIP,
- The cover is closed, paper present, head ready and cartridge neither empty nor removed.
- Parameters:
station
- See UPOS specification, method PrintImmediate.data
- Print data. See UPOS specification, method PrintImmediate.- Returns:
- PrintImmediate object for use in final part.
- Throws:
jpos.JposException
- See UPOS specification, method PrintImmediate.
-
setBitmap
void setBitmap(int bitmapNumber, int station, String fileName, int width, int alignment) throws jpos.JposExceptionFinal part of SetBitmap method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- bitmapNumber is between 1 and 20,
- station is S_RECEIPT or S_SLIP,
- selected station and bitmap printing on selected station supported,
- fileName is not null,
- width is BM_ASIS or > 0,
- alignment is BM_LEFT, BM_CENTER, BM_RIGHT or ≥ 0.
- Parameters:
bitmapNumber
- See UPOS specification, method SetBitmap.station
- See UPOS specification, method SetBitmap.fileName
- See UPOS specification, method SetBitmap.width
- See UPOS specification, method SetBitmap.alignment
- See UPOS specification, method SetBitmap.- Throws:
jpos.JposException
- See UPOS specification, method SetBitmap.
-
setLogo
Final part of SetLogo method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Selected location is L_TOP or L_BOTTOM,
- data is not null.
- Parameters:
location
- See UPOS specification, method SetLogo.data
- See UPOS specification, method SetLogo.- Throws:
jpos.JposException
- See UPOS specification, method SetLogo.
-
validateData
Final part of ValidateData method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- station is S_JOURNAL, S_RECEIPT or S_SLIP.
- Parameters:
station
- See UPOS specification, method ValidateData.data
- Print data. See UPOS specification, method ValidateData.- Throws:
jpos.JposException
- See UPOS specification, method ValidateData.
-
validateData
@Deprecated void validateData(int station, POSPrinterService.PrintDataPart data) throws jpos.JposExceptionDeprecated.Validate character or escape sequence. Usually, this method simply calls the validation method of the given PrintDataPart object.
This method is deprecaded now. It is recommended to use the validateData method of data instead.- Parameters:
station
- POSPrinter station, one of S_JOURNAL, S_RECEIPT or S_SLIP.data
- Any object derived from PrintDataPart.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Validate printable character sequence. ESC sequences, CR and LF have been filtered out. Default behavior is that all other characters with character code ≤ 0x20 are invalid. If a service should support more characters, this method must be overwritten.
Keep in mind that data may contain an empty string. In that case, it marks the end of printable data in cases where the last character was a CR to support post-validation of CR.- Parameters:
station
- POSPrinter station, one of S_JOURNAL, S_RECEIPT or S_SLIP.data
- Data to be printed.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Validate control character. One of CR or LF. Default behavior is that both characters are valid. CR will be passed to ValidateData only once for any sequence of multiple CR in the original data stream and only if LF is neither the previous nor the following character. However, even if the printer supports CR, CR might be valid behind or in case of a following escape sequence.- Parameters:
station
- POSPrinter station, one of S_JOURNAL, S_RECEIPT or S_SLIP.ctrl
- ControlChar object, representing CR or LF.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Validate cut sequence. For details, see UPOS specification of ESC|[#][x]P. Default behavior is that a service supports only full cut and no cut (CP_FULLCUT and 0 percent). If a service supports more values, this method must be overwritten. The following plausibility checks will be made before this method will be called:- The printer station is valid,
- Capability CapXxxPapercut is true,
- EscCut attribute Stamp is false or CapXxxStamp is true.
- Parameters:
station
- S_RECEIPT.esc
- EscCut object containing sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Validate ruled line escape sequence. For details, see UPOS specification of ESC|*#dL. All parameters have been checked for plausibility before entering this method as described for each parameter. Can be overwritten by service implementations. The following plausibility checks will be made before this method will be called:- The printer station is valid,
- The LineDirection attribute is valid in combination with the corresponding capability CapXxxRuledLine,
- The LineWidth attribute is > 0,
- The LineStyle attribute is one of LS_SINGLE_SOLID_LINE, LS_DOUBLE_SOLID_LINE, LS_BROKEN_LINE or LS_CHAIN_LINE,
- The LineColor attribute is one of the colors represented by the bits set in the corresponding CapXxxColor capability,
- The PositionList attribute conforms to the UPOS specification, method DrawRuledLine. Values have been checked against 0 and XxxLineWidth.
- Parameters:
station
- A valid printer station, S_RECEIPT, S_JOURNAL or S_SLIP.esc
- EscRuledLine object containing the sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Validate normalize escape sequence. For details, see UPOS specification of ESC|N. Should always be valid. Can be overwritten by service implementations. The following plausibility checks will be made before this method will be called:- The printer station is valid.
- Parameters:
station
- A valid printer station, S_RECEIPT, S_JOURNAL or S_SLIP.esc
- EscNormalize object containing the sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Validate logo sequence. For details, see UPOS specification of ESC|xL. The default behavior is to assume that requests to print a logo are always valid. The following plausibility checks will be made before this method will be called:- The printer station is valid.
- Parameters:
station
- A valid printer station, S_RECEIPT, S_JOURNAL or S_SLIP.esc
- EscLogo object containing sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Validate stamp sequence. For details, see UPOS specification of ESC|sL. The corresponding capability (CapRecStamp) has been checked and station is S_RECEIPT. The default behavior is to assume that requests to stamp are always valid. The following plausibility checks will be made before this method will be called:- The printer station is valid,
- CapXxxStanp is true.
- Parameters:
station
- A valid printer station, S_RECEIPT, S_JOURNAL or S_SLIP.esc
- EscStamp object containing the sequemnce attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Validate bitmap sequence. For details, see UPOS specification of ESC|#B. Default behavior is that all bitmap numbers are valid if the corresponding capability for the specified printer station is true. The following plausibility checks will be made before this method will be called:- The printer station is valid,
- CapXxxBitmap is true,
- EscBitmap attribute Number is > 0 and ≤ 20.
- Parameters:
station
- A valid printer station, S_RECEIPT or S_SLIP.esc
- EscBitmap object containing the sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Validate feed sequence. For details, see UPOS specification of ESC|[#]xF. Default behavior is that all count values are valid. The following plausibility checks will be made before this method will be called:- The printer station is valid.
- Parameters:
station
- A valid printer station, S_RECEIPT, S_JOURNAL or S_SLIP.esc
- EscFeed object containing the sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Validate embedded data sequence. For details, see UPOS specification of ESC|[*]#E. Default behavior is that the given sequence is valid. The following plausibility checks will be made before this method will be called:- The printer station is valid.
- Parameters:
station
- A valid printer station, S_RECEIPT, S_JOURNAL or S_SLIP.esc
- EscEmbedded object containing sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Validate barcode sequence. For details, see UPOS specification of ESC|[*]#R. A service implementation should check the validity of symbology, height and text position and whether all character in code can be printed using the selected symbology. For example, if symbology is BCS_UPCA, the code must consist only of numeric characters, the length must be 6, 7, 11 or 12 and in case of 7 or 12, the last digit must be a valid check digit. The following plausibility checks will be made before this method will be called:- The printer station is valid,
- CapXxxBarCode is true,
- EscBarcode attribute Symbology is ≥ BCS_UPCA (which is the smallest valid symbology value),
- EscBarcode attribute Height is > 0,
- EscBarcode attribute Width is > 0 and ≤ XxxLineWidth,
- EscCarcode attribute TextPosition is one of BC_TEXT_ABOVE, BC_TEXT_BELOW or BC_TEXT_NONE.
- Parameters:
station
- A valid printer station, S_RECEIPT or S_SLIP.esc
- EscBarcode object containing sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Validate font typeface selection sequence. For details, see UPOS specification of ESC|#fT. Default behavior is to support all type fonts specified in FontTypefaceList for all printer stations. The following plausibility checks will be made before this method will be called:- The printer station is valid,
- EscFontTypeface attribute is between 0 and the number of type face names specified in FontTypefaceList.
- Parameters:
station
- A valid printer station, S_RECEIPT, S_JOURNAL or S_SLIP.esc
- EscFontTypeface object containing the sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Validate alignment sequence. For details, see UPOS specification of ESC|xA. Default behavior is that the service supports left, centered and right aligned text. The following plausibility checks will be made before this method will be called:- The printer station is valid.
- Parameters:
station
- A valid printer station, S_RECEIPT, S_JOURNAL or S_SLIP.esc
- EscAlignment object that contains the sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Validate print size sequence. For details, see UPOS specification for ESC|xC, ESC|#hC or ESC|#vC. Default behavior is only support for scale = 1 and 2 if the corresponding capabilities for width and height of the specified station are true. If a service supports more scales, this method must be overwritten. The following plausibility checks will be made before this method will be called:- The printer station is valid,
- If EscScale attribute ScaleValue is 2, CapXxxDhigh, CapXxxDwide or CapXxxDwideDhigh is true if the corresponding EscScale attribute(s) ScaleHorizontal and / or ScaleVertical is / are true.
- Parameters:
station
- Valid print stationesc
- EscScale object that holds the sequence specific attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Validate attribute setting sequences. For details, see UPOS specification for ESC|[!]bC, ESC|[!]iC, ESC|[!]rvC, ESC|[!]tbC and ESC|[!]tpC. The default behavior is that reverse video, superscript and subscript printing is not supported and resetting an attribute is not supported, too. If a printer supports these attributes, this method must be overwritten.
The following plausibility checks will be made before this method will be called:- The printer station is valid,
- If EscSimple attributes Bold and Activate are true, CapXxxBold is true,
- If EscSimple attributes Italic and Activate are true, CapXxxItalic is true.
- Parameters:
station
- Print station, in case of bold ant italic validated.esc
- Object holding data of simple esc sequence- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Validate combined line printing sequence. For details, see UPOS specification for ESC|[!][#]uC and ESC|[!][#]stC. Default behavior is no support for strike-through and thickness of 1 dot for underline is supported. If a service supports strike-through or another thickness, this method must be overwritten. The following plausibility checks will be made before this method will be called:- The printer station is valid,
- If EscLine attribute Underline and Activate are true, CapXxxUnderline is true.
- Parameters:
station
- Valid print stationesc
- EscLine object containing the sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Validate color sequences. For details, see UPOS specification for ESC|[#]rC and ESC|[#]fC. Default behavior is that the service supports all colors specified in the 2Color capability of the specified printer station, but no RGB color settings. If a service supports RGB colors, this method must be overwritten. The following plausibility checks will be made before this method will be called:- The printer station is valid,
- If EscColor attribute Rgb is true, attribute Color has a decimal value of the form rrrgggbbb, where rrr, ggg and bbb are values between 0 and 255 (inclusive),
- If EscColor attribute Rgbis false, attribute Color is one of the color values that form CapXxx2Color.
- Parameters:
station
- Valid printer stationesc
- EscColor object containing the sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Validate shading sequence. For details, see UPOS specification of ESC|[#]sC. Default is no support of shading. Therefore all values other then -1 (default) and 0 are not supported. If a service supports shading, this method must be overwritten. The following plausibility checks will be made before this method will be called:- The printer station is valid.
- Parameters:
station
- POSPrinter station.esc
- EscShade object containing the sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Validate unknown sequence. Default is no support. If a device supports further sequences, this method must be overwritten. The following plausibility checks will be made before this method will be called:- The printer station is valid.
- Parameters:
station
- POSPrinter station.esc
- EscUnknown object containing the sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
getLogoData
This method will be called whenever print data contain a logo print sequence ESC|tL or ESC|bL. Since it is possible that logos can be changed between the print call and execution of methods for asynchronous print, e.g. when transaction printing will be used, data describing the logo must be retrieved by POSPrinterService whenever an EscLogo object is generated. Every POSPrinter service implementation must overwrite this method because only the specific service stores information about the logo data. However, logo data are of type POSPrinterService.PrintDataPart[], where POSPrinterService.PrintDataPart is one of the objects supported by validateData(int, POSPrinterService.PrintDataPart). As default, this method returns an empty list of objects.- Parameters:
top
- Specifies which logo data shall be filled, true for top logo, false for bottom logo.- Returns:
- POSPrinterService.PrintDataPart array containing logo data. Array is empty if the requested logo has not been set.
-
cutPaper
Validation part of CutPaper method. For details, see UPOS specification. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapRecPresent and CapRecPapercut are true,
- If AsyncMode is false: State is S_IDLE, paper present, cover closed and if present, cartridge is operational.
- Parameters:
percentage
- See UPOS specification, method CutPaper.- Returns:
- CutPaper object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method CutPaper.
-
cutPaper
Final part of CutPaper method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a CutPaper object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- Receipt paper is present.
- Cover is closed.
- If present, cartridge is operational.
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by CutPaper.- Throws:
jpos.JposException
- For details, see UPOS method CutPaper.
-
drawRuledLine
DrawRuledLine drawRuledLine(int station, String positionList, int lineDirection, int lineWidth, int lineStyle, int lineColor) throws jpos.JposExceptionValidation part of DrawRuledLine method. For details, see UPOS specification. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- If AsyncMode is false: State is S_IDLE, paper present, cover closed and if present, cartridge is operational.
- neither transaction mode nor vertical print mode or page mode is active for the specified station,
- station, lineDirection, lineWidth, lineStyle, lineColor and positionList have been validated with validateRuledLine.
- Parameters:
station
- POSPrinter station.positionList
- Position list.lineDirection
- Line direction.lineWidth
- Line width in dots.lineStyle
- Line stype.lineColor
- Line color.- Returns:
- DrawRuledLine object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method DrawRuledLine.
-
drawRuledLine
Final part of DrawRuledLine method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a DrawRuledLine object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- The station specified by request.getStation() is present.
- Cover is closed.
- If present, cartridge is operational.
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by DrawRuledLine.- Throws:
jpos.JposException
- For details, see UPOS method DrawRuledLine.
-
markFeed
Validation part of MarkFeed method. For details, see UPOS specification. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- neither transaction mode nor vertical print mode or page mode is active,
- CapRecPresent is true and CapRecMarkFeed is not 0,
- type is MF_TO_TAKEUP, MF_TO_CUTTER, MF_TO_CURRENT_TOF or MF_TO_NEXT_TOF,
- CapRecMarkFeed ANDed with type is non-zero,
- If AsyncMode is false: State is S_IDLE, paper present, cover closed and if present, cartridge is operational.
- Parameters:
type
- type of mark sensed paper handling. See UPOS specification for method MarkFeed- Returns:
- MarkFeed object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method MarkFeed.
-
markFeed
Final part of MarkFeed method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a MarkFeed object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- Receipt paper is present.
- Cover is closed.
- If present, cartridge is operational.
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by MarkFeed.- Throws:
jpos.JposException
- For details, see UPOS method MarkFeed.
-
printBarCode
PrintBarCode printBarCode(int station, String data, int symbology, int height, int width, int alignment, int textPosition) throws jpos.JposExceptionValidation part of PrintBarCode method. For details, see UPOS specification. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- If AsyncMode is false: State is S_IDLE, paper present, cover closed and if present, cartridge is operational,
- station, data, symbology, height, width, alignment and textPosition have been validated with validateBarcode.
- Parameters:
station
- Print station, see UPOS method PrintBarCode.data
- String to be bar coded, see UPOS method PrintBarCode.symbology
- Symbol type to be used, see UPOS method PrintBarCode.height
- Bar code height, see UPOS method PrintBarCode.width
- Bar code width, see UPOS method PrintBarCode.alignment
- Bar code alignment, see UPOS method PrintBarCode.textPosition
- HRI text position, see UPOS method PrintBarCode.- Returns:
- PrintBarCode object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method PrintBarCode.
-
printBarCode
Final part of PrintBarCode method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintBarCode object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- The station specified by request.getStation() is present.
- Cover is closed.
- If present, cartridge is operational.
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by PrintBarCode.- Throws:
jpos.JposException
- For details, see UPOS method PrintBarCode.
-
printBitmap
PrintBitmap printBitmap(int station, String fileName, int width, int alignment) throws jpos.JposExceptionValidation part of PrintBitmap method. For details, see UPOS specification. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- If AsyncMode is false: State is S_IDLE, paper present, cover closed and if present, cartridge is operational,
- station is valid (S_RECEIPT or S_SLIP and CapXxxBitmap and CapXxxPresent are true),
- fileName is not null,
- width is BM_ASIS or a value > 0,
- alignment is one of BM_LEFT, BM_CENTER, BM_RIGHT or a positive value.
- Parameters:
station
- Print station, see UPOS method PrintBitmap.fileName
- Bitmap file name, see UPOS method PrintBitmap.width
- Width, see UPOS method PrintBitmap.alignment
- Alignment, see UPOS method PrintBitmap.- Returns:
- PrintBitmap object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method PrintBitmap.
-
printBitmap
Final part of PrintBitmap method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintBitmap object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- The station specified by request.getStation() is present.
- Cover is closed.
- If present, cartridge is operational.
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by PrintBitmap.- Throws:
jpos.JposException
- For details, see UPOS method PrintBitmap.
-
printMemoryBitmap
PrintMemoryBitmap printMemoryBitmap(int station, byte[] data, int type, int width, int alignment) throws jpos.JposExceptionValidation part of PrintMemoryBitmap method. For details, see UPOS specification. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- If AsyncMode is false: State is S_IDLE, paper present, cover closed and if present, cartridge is operational,
- station is valid (S_RECEIPT or S_SLIP and CapXxxBitmap and CapXxxPresent are true),
- data is not null,
- type is one of BMT_BMP, BMT_JPEG or BMT_GIF,
- width is BM_ASIS or a value > 0,
- alignment is one of BM_LEFT, BM_CENTER, BM_RIGHT or a positive value.
- Parameters:
station
- Print station, see UPOS method PrintMemoryBitmap.data
- Bitmap data, see UPOS method PrintBitmap.type
- Bitmap format, see UPOS method PrintBitmap.width
- Width, see UPOS method PrintMemoryBitmap.alignment
- Alignment, see UPOS method PrintMemoryBitmap.- Returns:
- PrintMemoryBitmap object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method PrintMemoryBitmap.
-
printMemoryBitmap
Final part of PrintMemoryBitmap method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintMemoryBitmap object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- The station specified by request.getStation() is present.
- Cover is closed.
- If present, cartridge is operational.
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by PrintMemoryBitmap.- Throws:
jpos.JposException
- For details, see UPOS method PrintMemoryBitmap.
-
printNormal
Validation part of PrintNormal method. For details, see UPOS specification. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- If AsyncMode is false: State is S_IDLE, paper present, cover closed and if present, cartridge is operational,
- station is valid (S_JOURNAL, S_RECEIPT or S_SLIP and the corresponding CapXxxPresent is true),
- data is not null.
- Parameters:
station
- Print station, see UPOS method PrintNormal.data
- Print data. See UPOS method PrintNormal.- Returns:
- PrintNormal object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method PrintNormal.
-
printNormal
Final part of PrintNormal method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintNormal object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- The station specified by request.getStation() is present.
- Cover is closed.
- If present, cartridge is operational.
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by PrintNormal.- Throws:
jpos.JposException
- For details, see UPOS method PrintNormal.
-
printTwoNormal
Validation part of PrintTwoNormal method. For details, see UPOS specification. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- stations is valid (S_JOURNAL_RECEIPT, S_JOURNAL_SLIP, S_RECEIPT_SLIP, TWO_RECEIPT_JOURNAL, TWO_SLIP_JOURNAL or TWO_SLIP_RECEIPT and the corresponding CapConcurrentXxxYyy property is true),
- data1 and data2 are not null,
- Non of the two print stations is in page mode, sideways print mode or transaction mode,
- If AsyncMode is false: State is S_IDLE, paper present, cover closed and if present, cartridge is operational for both stations.
- Parameters:
stations
- Print stations, see UPOS method PrintTwoNormal.data1
- Print data for first or both stations, see UPOS method PrintTwoNormal.data2
- Print data for second station or empty string, see UPOS method PrintTwoNormal.- Returns:
- PrintTwoNormal object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method PrintTwoNormal.
-
printTwoNormal
Final part of PrintTwoNormal method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintTwoNormal object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- The stations specified by request.getStation() are present.
- Covers are closed.
- If present, cartridges are operational.
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by PrintTwoNormal.- Throws:
jpos.JposException
- For details, see UPOS method PrintTwoNormal.
-
transactionPrint
Validation part of TransactionPrint method. For details, see UPOS specification. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- station is valid (S_JOURNAL, S_RECEIPT or S_SLIP),
- control is one of TP_NORMAL or TP_TRANSACTION,
- control is TP_NORMAL if and only if the service is in transaction mode,
- If AsyncMode is false: State is S_IDLE, paper present, cover closed and if present, cartridge is operational for both stations.
- Parameters:
station
- Print station, see UPOS method TransactionPrint.control
- Control, see UPOS method TransactionPrint.- Returns:
- TransactionPrint object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method TransactionPrint.
-
transactionPrint
Final part of TransactionPrint method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a TransactionPrint object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- The station specified by request.getStation() is present.
- Cover is closed.
- If present, cartridge is operational.
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by TransactionPrint.- Throws:
jpos.JposException
- For details, see UPOS method TransactionPrint.
-
rotatePrint
Validation part of RotatePrint method. For details, see UPOS specification. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- station is valid (S_RECEIPT or S_SLIP),
- rotation contains one of the rotation values (RP_RIGHT90, RP_LEFT90 or RP_ROTATE180) or is RP_NORMAL,
- If not RP_NORMAL: The capability corresponding to station (CapXxxRight90, CapXxxLeft90, CapRotate180) is true and the station is not in sideways printing mode,
- If AsyncMode is false: State is S_IDLE, paper present, cover closed and if present, cartridge is operational for both stations.
- Parameters:
station
- Print station, see UPOS method RotatePrint.rotation
- Rotation, see UPOS method RotatePrint.- Returns:
- RotatePrint object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method RotatePrint.
-
rotatePrint
Final part of RotatePrint method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a RotatePrint object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- The station specified by request.getStation() is present.
- Cover is closed.
- If present, cartridge is operational.
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by RotatePrint.- Throws:
jpos.JposException
- For details, see UPOS method RotatePrint.
-
pageModePrint
Validation part of PageModePrint method. For details, see UPOS specification. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PageModeStation is valid (S_RECEIPT or S_SLIP and the correcponding capability CapXxxPageMode is true),
- control is one of PM_PAGE_MODE, PM_PRINT_SAVE, PM_NORMAL or PM_CANCEL,
- If PM_PAGE_MODE: The station is not in page mode,
- If not PM_PAGE_MODE: The station is in page mode,
- If AsyncMode is false: State is S_IDLE, paper present, cover closed and if present, cartridge is operational for both stations.
- Parameters:
control
- Control, see UPOS method PageModePrint.- Returns:
- PageModePrint object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method PageModePrint.
-
pageModePrint
Final part of PageModePrint method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PageModePrint object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- The station specified by PageModeStation is present.
- Cover is closed.
- If present, cartridge is operational.
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by PageModePrint.- Throws:
jpos.JposException
- For details, see UPOS method PageModePrint.
-