Class PrintContent
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
de.gmxhome.conrad.jpos.jpos_base.electronicjournal.PrintContent
- All Implemented Interfaces:
Runnable
Output request executor for ElectronicJournal method PrintContent.
-
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
ConstructorsConstructorDescriptionPrintContent(JposCommonProperties props, String fromMarker, String toMarker)
Constructor. -
Method Summary
Modifier and TypeMethodDescriptionElectronicJournal method PrintContent parameter fromMarker, see UPOS specification.ElectronicJournal method PrintContent parameter toMarker, see UPOS specification.void
invoke()
Invokes the command.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
abortCommand, abortCommand, catchedInvocation, clearAll, clearInput, clearOutput, countCommands, createErrorEvent, createIdleEvent, createOutputEvent, dequeue, enqueue, enqueueSynchronous, finishAsyncProcessing, finished, reactivate, reactivate, reset, run
-
Constructor Details
-
PrintContent
Constructor. Stores given parameters for later use.- Parameters:
props
- Property set of device service.fromMarker
- Marker that marks start position of data to be printed.toMarker
- Marker that marks end position of data to be printed.
-
-
Method Details
-
getFromMarker
ElectronicJournal method PrintContent parameter fromMarker, see UPOS specification.- Returns:
- Name of lower bound marker.
-
getToMarker
ElectronicJournal method PrintContent parameter toMarker, see UPOS specification.- Returns:
- Name of upper bound marker.
-
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.
-