Class PrintImmediate

All Implemented Interfaces:
Runnable

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

    • PrintImmediate

      public PrintImmediate(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

    • enqueue

      public void enqueue() throws jpos.JposException
      Description copied from class: JposOutputRequest
      Puts output request into queue of pending commands. If not active, a new request processor will be activated.
      Overrides:
      enqueue in class JposOutputRequest
      Throws:
      jpos.JposException - if device is just in error state