Class PrintNormal

All Implemented Interfaces:
Runnable
Direct Known Subclasses:
PrintImmediate

public class PrintNormal extends OutputPrintRequest
Output request executor for POSPrinter method PrintNormal.
  • Constructor Details

    • PrintNormal

      public PrintNormal(JposCommonProperties props, int station, String data)
      Constructor. Stores given parameters for later use.
      Parameters:
      props - Property set of device service.
      station - The printer station to be used. May be either S_JOURNAL, S_RECEIPT or S_SLIP.
      data - The characters to be printed. May consist of printable characters, escape sequences, carriage returns (13 decimal), and line feeds (10 decimal).
  • Method Details

    • getStation

      public int getStation()
      POSPrinter method PrintNormal parameter station, see UPOS specification.
      Returns:
      PrintNormal parameter station.
    • getData

      POSPrinter method PrintNormal parameter data, converted to a List<Object> with POSPrinterService method outputDataParts.
      Returns:
      List<Object> containing print data contained in PrintNormal parameter data.
    • 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.