Class PrintFixedOutput
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
de.gmxhome.conrad.jpos.jpos_base.fiscalprinter.OutputRequest
de.gmxhome.conrad.jpos.jpos_base.fiscalprinter.PrintFixedOutput
- All Implemented Interfaces:
Runnable
Output request executor for FiscalPrinter method PrintFiscalDocumentLine.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
JposOutputRequest.JposRequestThread
-
Field Summary
Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.fiscalprinter.OutputRequest
Level
Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
Abort, AdditionalData, Device, EndSync, Exception, Finished, OutputID, Props, Waiting
-
Constructor Summary
ConstructorsConstructorDescriptionPrintFixedOutput(FiscalPrinterProperties props, int documentType, int lineNumber, String data)
Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Changes Station to FPTR_S_SLIP.getData()
FiscalPrinter method PrintFixedOutput parameter data, see UPOS specification.int
FiscalPrinter method PrintFixedOutput parameter lineNumber, see UPOS specification.int
FiscalPrinter method PrintFixedOutput parameter documentLine, see UPOS specification.int
FiscalPrinter method BeginFixedOutput parameter station, see UPOS specification.void
invoke()
This function should be called whenever a printing method has been invoked.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.fiscalprinter.OutputRequest
createErrorEvent, createIdleEvent, setIdleWaiter
Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
abortCommand, abortCommand, catchedInvocation, clearAll, clearInput, clearOutput, countCommands, createOutputEvent, dequeue, enqueue, enqueueSynchronous, finishAsyncProcessing, finished, reactivate, reactivate, reset, run
-
Constructor Details
-
PrintFixedOutput
public PrintFixedOutput(FiscalPrinterProperties props, int documentType, int lineNumber, String data)Constructor. Stores given parameters for later use.- Parameters:
props
- Property set of device service.documentType
- Identifier of a document stored in the Fiscal Printer.lineNumber
- Number of the line in the document to print.data
- String parameter for placement in printed line.
-
-
Method Details
-
getStation
public int getStation()FiscalPrinter method BeginFixedOutput parameter station, see UPOS specification. Default: FPTR_S_RECEIPT. If printer supports fixed output on slip paper and beginFixedOutput has been called with station = FPTR_S_SLIP, the implementation class must explicitly call changeToSlip to activate slipoutput.- Returns:
- Print station.
-
changeToSlip
public void changeToSlip()Changes Station to FPTR_S_SLIP. Must be called before first call of invoke() whenever FPTR_S_SLIP had been specified in the corresponding BeginFixedOutput method call. -
getDocumentType
public int getDocumentType()FiscalPrinter method PrintFixedOutput parameter lineNumber, see UPOS specification.- Returns:
- PrintFixedOutput parameter lineNumber.
-
getLineNumber
public int getLineNumber()FiscalPrinter method PrintFixedOutput parameter documentLine, see UPOS specification.- Returns:
- PrintFixedOutput parameter documentLine.
-
getData
FiscalPrinter method PrintFixedOutput parameter data, see UPOS specification.- Returns:
- PrintFixedOutput parameter data.
-
invoke
public void invoke() throws jpos.JposExceptionDescription copied from class:OutputRequest
This function should be called whenever a printing method has been invoked. Therefore, it is the perfect place to signal processing has finished to implicitly waiting synchronous methods.- Overrides:
invoke
in classOutputRequest
- Throws:
jpos.JposException
- If the invoked method throws an exception.
-