Class PrintTwoNormal
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
de.gmxhome.conrad.jpos.jpos_base.posprinter.OutputRequest
de.gmxhome.conrad.jpos.jpos_base.posprinter.OutputPrintRequest
de.gmxhome.conrad.jpos.jpos_base.posprinter.PrintTwoNormal
- All Implemented Interfaces:
Runnable
Output request executor for POSPrinter method PrintTwoNormal.
-
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.JposOutputRequest
Abort, AdditionalData, Device, EndSync, Exception, Finished, OutputID, Props, Waiting
-
Constructor Summary
ConstructorsConstructorDescriptionPrintTwoNormal(JposCommonProperties props, int station, String data1, String data2)
Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetData1()
POSPrinter method PrintTwoNormal parameter data1, converted to a List<Object> with POSPrinterService method outputDataParts.getData2()
POSPrinter method PrintTwoNormal parameter data2, converted to a List<Object> with POSPrinterService method outputDataParts.int
POSPrinter method PrintTwoNormal parameter station, see UPOS specification.void
invoke()
Invokes the command.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.posprinter.OutputPrintRequest
getSynchronousPrinting
Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.posprinter.OutputRequest
createErrorEvent, createIdleEvent
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
-
PrintTwoNormal
Constructor. Stores given parameters for later use.- Parameters:
props
- Property set of device service.station
- The printer station to be used. May one of S_JOURNAL_RECEIPT, S_JOURNAL_SLIP, S_RECEIPT_SLIP, TWO_RECEIPT_JOURNAL, TWO_SLIP_JOURNAL or TWO_SLIP_RECEIPT.data1
- The characters to be printed on the first printer station. May consist of printable characters, escape sequences, carriage returns (13 decimal), and line feeds (10 decimal). The characters must all fit on one printed line, so that the printer may attempt to print on both stations simultaneously.data2
- The characters to be printed on the second station. Restrictions are the same as for data1. If this string is the empty string (""), then print the same data as data1. On some printers, using this format may give additional increased print performance.
-
-
Method Details
-
getStation
public int getStation()POSPrinter method PrintTwoNormal parameter station, see UPOS specification.- Returns:
- PrintTwoNormal parameter station.
-
getData1
POSPrinter method PrintTwoNormal parameter data1, converted to a List<Object> with POSPrinterService method outputDataParts.- Returns:
- List<Object> containing print data contained in PrintTwoNormal parameter data1.
-
getData2
POSPrinter method PrintTwoNormal parameter data2, converted to a List<Object> with POSPrinterService method outputDataParts.- Returns:
- List<Object> containing print data contained in PrintTwoNormal parameter data2.
-
invoke
public void invoke() throws jpos.JposExceptionDescription copied from class:JposOutputRequest
Invokes the command. Must be implemented in derived class. Calls finished() to wake up potentially waiting threads.- Overrides:
invoke
in classJposOutputRequest
- Throws:
jpos.JposException
- JposException thrown by the command to be executed.
-