Class ScannerProperties

java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
de.gmxhome.conrad.jpos.jpos_base.scanner.ScannerProperties
All Implemented Interfaces:
JposBaseInterface, ScannerInterface
Direct Known Subclasses:
Scanner

public class ScannerProperties extends JposCommonProperties implements ScannerInterface
Class containing the scanner specific properties, their default values and default implementations of ScannerInterface. For details about properties, methods and method parameters, see UPOS specification, chapter Scanner (Bar Code Reader).
  • Field Details

    • ScanDataDef

      public byte[] ScanDataDef
      Default value of ScanData property. Default: Zero-length byte array. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • DecodeData

      public boolean DecodeData
      UPOS property DecodeData.
    • ScanData

      public byte[] ScanData
      UPOS property ScanData.
    • ScanDataLabel

      public byte[] ScanDataLabel
      UPOS property ScanDataLabel.
    • ScanDataType

      public int ScanDataType
      UPOS property ScanDataType.
  • Constructor Details

    • ScannerProperties

      public ScannerProperties(int dev)
      Constructor. Sets ExclusiveUse to ExclusiveYes to match the ScannerInterface device model.
      Parameters:
      dev - Device index
  • Method Details

    • initOnOpen

      public void initOnOpen()
      Description copied from class: JposCommonProperties
      Initialization of properties that must be initialized during open.
      Overrides:
      initOnOpen in class JposCommonProperties
    • clearDataProperties

      public void clearDataProperties()
      Description copied from class: JposCommonProperties
      Clear data properties. Performed during ClearInput and ClearInputProperties.
      Overrides:
      clearDataProperties in class JposCommonProperties
    • decodeData

      public void decodeData(boolean flag) throws jpos.JposException
      Description copied from interface: ScannerInterface
      Final part of setting DecodeData. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device has not been closed,
      • internal property AllowAlwaysSetProperties is true or flag equals the previous value of DecodeData.
      Specified by:
      decodeData in interface ScannerInterface
      Parameters:
      flag - New DecodeData value
      Throws:
      jpos.JposException - If an error occurs