All Implemented Interfaces:
Runnable

public class CutPaper extends OutputRequest
Output request executor for POSPrinter method CutPaper.
  • Constructor Details

    • CutPaper

      public CutPaper(JposCommonProperties props, int percentage)
      Constructor. Stores given parameters for later use.
      Parameters:
      props - Property set of device service.
      percentage - The percentage of paper to cut.
  • Method Details

    • getPercentage

      public int getPercentage()
      POSPrinter method CutPaper parameter percentage, see UPOS specification.
      Returns:
      CutPaper parameter percentage.
    • 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.