Class OutputPrintRequest

All Implemented Interfaces:
Runnable
Direct Known Subclasses:
PrintNormal, PrintTwoNormal

public class OutputPrintRequest extends OutputRequest
Output print request class for printers.
  • Constructor Details

    • OutputPrintRequest

      public OutputPrintRequest(JposCommonProperties props)
      Constructor. Stores given parameters for later use.
      Parameters:
      props - Property set of device service.
  • Method Details

    • getSynchronousPrinting

      public boolean getSynchronousPrinting()
      Gets synchronous printing flag. This flag is set in PrintImmediate method and if the following conditions are met:
      • AsyncMode is false,
      • Sideways printing is not active,
      • The printer is not in page mode,
      • The printer is outside of a transaction.
      The implementation of the corresponding methods shall check this flag to verify whether the output request data must be completely printed to be successful. In other words, if SynchronousPrinting is true, request data must be completely printed. No print data may remain in a printer buffer. See UPOS specification, end of chapter POS Printer - General Information - Model.
      Returns:
      True if request shall be performed completely before printing method returns.