Class PrintFixedOutput

All Implemented Interfaces:
Runnable

public class PrintFixedOutput extends OutputRequest
Output request executor for FiscalPrinter method PrintFiscalDocumentLine.
  • Constructor Details

    • PrintFixedOutput

      public PrintFixedOutput(FiscalPrinterProperties props, int documentType, int lineNumber, String data)
      Constructor. Stores given parameters for later use.
      Parameters:
      props - Property set of device service.
      documentType - Identifier of a document stored in the Fiscal Printer.
      lineNumber - Number of the line in the document to print.
      data - String parameter for placement in printed line.
  • Method Details

    • getStation

      public int getStation()
      FiscalPrinter method BeginFixedOutput parameter station, see UPOS specification. Default: FPTR_S_RECEIPT. If printer supports fixed output on slip paper and beginFixedOutput has been called with station = FPTR_S_SLIP, the implementation class must explicitly call changeToSlip to activate slipoutput.
      Returns:
      Print station.
    • changeToSlip

      public void changeToSlip()
      Changes Station to FPTR_S_SLIP. Must be called before first call of invoke() whenever FPTR_S_SLIP had been specified in the corresponding BeginFixedOutput method call.
    • getDocumentType

      public int getDocumentType()
      FiscalPrinter method PrintFixedOutput parameter lineNumber, see UPOS specification.
      Returns:
      PrintFixedOutput parameter lineNumber.
    • getLineNumber

      public int getLineNumber()
      FiscalPrinter method PrintFixedOutput parameter documentLine, see UPOS specification.
      Returns:
      PrintFixedOutput parameter documentLine.
    • getData

      public String getData()
      FiscalPrinter method PrintFixedOutput parameter data, see UPOS specification.
      Returns:
      PrintFixedOutput parameter data.
    • invoke

      public void invoke() throws jpos.JposException
      Description copied from class: OutputRequest
      This function should be called whenever a printing method has been invoked. Therefore, it is the perfect place to signal processing has finished to implicitly waiting synchronous methods.
      Overrides:
      invoke in class OutputRequest
      Throws:
      jpos.JposException - If the invoked method throws an exception.