Class PrintTwoNormal

All Implemented Interfaces:
Runnable

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

    • PrintTwoNormal

      public PrintTwoNormal(JposCommonProperties props, int station, String data1, String data2)
      Constructor. Stores given parameters for later use.
      Parameters:
      props - Property set of device service.
      station - The printer station to be used. May one of S_JOURNAL_RECEIPT, S_JOURNAL_SLIP, S_RECEIPT_SLIP, TWO_RECEIPT_JOURNAL, TWO_SLIP_JOURNAL or TWO_SLIP_RECEIPT.
      data1 - The characters to be printed on the first printer station. May consist of printable characters, escape sequences, carriage returns (13 decimal), and line feeds (10 decimal). The characters must all fit on one printed line, so that the printer may attempt to print on both stations simultaneously.
      data2 - The characters to be printed on the second station. Restrictions are the same as for data1. If this string is the empty string (""), then print the same data as data1. On some printers, using this format may give additional increased print performance.
  • Method Details

    • getStation

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

      POSPrinter method PrintTwoNormal parameter data1, converted to a List<Object> with POSPrinterService method outputDataParts.
      Returns:
      List<Object> containing print data contained in PrintTwoNormal parameter data1.
    • getData2

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