Class Write
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
de.gmxhome.conrad.jpos.jpos_base.hardtotals.ChangeRequest
de.gmxhome.conrad.jpos.jpos_base.hardtotals.Write
- All Implemented Interfaces:
Runnable
Output request executor for HardTotals method Write.
-
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
ConstructorsConstructorDescriptionWrite(HardTotalsProperties props, int hTotalsFile, byte[] data, int offset, int count)
Constructor, stores given parameters for later use of Write operation. -
Method Summary
Modifier and TypeMethodDescriptionint
getCount()
HardTotals method Write parameter count, see UPOS specification.byte[]
getData()
HardTotals method Write parameter data, see UPOS specification.int
HardTotals method Write parameter offset, see UPOS specification.void
invoke()
Invokes the command.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.hardtotals.ChangeRequest
getHTotalsFile
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
-
Write
Constructor, stores given parameters for later use of Write operation.- Parameters:
props
- Property set of device service.hTotalsFile
- Handle of a totals file.data
- Data to be written.offset
- Starting offset for write operation.count
- Number of bytes to be written.
-
-
Method Details
-
getData
public byte[] getData()HardTotals method Write parameter data, see UPOS specification.- Returns:
- Write parameter data.
-
getOffset
public int getOffset()HardTotals method Write parameter offset, see UPOS specification.- Returns:
- Write parameter offset.
-
getCount
public int getCount()HardTotals method Write parameter count, see UPOS specification.- Returns:
- Write parameter count.
-
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.
-