Class POSPrinterService.PrintDataPart
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.posprinter.POSPrinterService.PrintDataPart
- Direct Known Subclasses:
POSPrinterService.ControlChar
,POSPrinterService.EscAlignment
,POSPrinterService.EscBarcode
,POSPrinterService.EscBitmap
,POSPrinterService.EscColor
,POSPrinterService.EscCut
,POSPrinterService.EscEmbedded
,POSPrinterService.EscFeed
,POSPrinterService.EscFontTypeface
,POSPrinterService.EscLine
,POSPrinterService.EscLogo
,POSPrinterService.EscNormalize
,POSPrinterService.EscRuledLine
,POSPrinterService.EscScale
,POSPrinterService.EscShade
,POSPrinterService.EscSimple
,POSPrinterService.EscStamp
,POSPrinterService.EscUnknown
,POSPrinterService.PrintData
- Enclosing class:
- POSPrinterService
Helper class used to control parsed output data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
validate(POSPrinterService srv, int station)
Used to perform full validation of the print data.abstract void
validateData(POSPrinterService srv, int station)
Used to perform additional validation of the print data, if output to the given station occurs.
-
Constructor Details
-
PrintDataPart
public PrintDataPart()
-
-
Method Details
-
validate
Used to perform full validation of the print data. To do this, relevant capabilities will be checked and the corresponding method of the POSPrinterInterface used by the given POSPrinterService will be called.- Parameters:
srv
- POSPrinterService to be used for additional validation.station
- Printer station for which the validation shall be checked.- Throws:
jpos.JposException
- If not precisely supported with ErrorCode E_ILLEGAL, if not supported and no workaround is possible, with ErrorCode E_FAILURE.
-
validateData
Used to perform additional validation of the print data, if output to the given station occurs. To do this, simply the corresponding method of the POSPrinterInterface used by the given POSPrinterService will be called.- Parameters:
srv
- POSPrinterService to be used for validation.station
- Printer station used for validation.- Throws:
jpos.JposException
- If not precisely supported with ErrorCode E_ILLEGAL, if not supported and no workaround is possible, with ErrorCode E_FAILURE.
-