All Implemented Interfaces:
Runnable

public class Write extends ChangeRequest
Output request executor for HardTotals method Write.
  • Constructor Details

    • Write

      public Write(HardTotalsProperties props, int hTotalsFile, byte[] data, int offset, int count)
      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.JposException
      Description copied from class: JposOutputRequest
      Invokes the command. Must be implemented in derived class. Calls finished() to wake up potentially waiting threads.
      Overrides:
      invoke in class JposOutputRequest
      Throws:
      jpos.JposException - JposException thrown by the command to be executed.