Class ImageScannerDataEvent
java.lang.Object
java.util.EventObject
jpos.events.JposEvent
jpos.events.DataEvent
de.gmxhome.conrad.jpos.jpos_base.JposDataEvent
de.gmxhome.conrad.jpos.jpos_base.imagescanner.ImageScannerDataEvent
- All Implemented Interfaces:
Serializable
Data event implementation for ImageScanner devices.
- See Also:
- Serialized Form
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
New contents of BitsPerPixel property.byte[]
New contents of FrameData property.int
New contents of FrameType property.int
New contents of ImageHeight property.int
New contents of ImageLength property.int
New contents of ImageType property.int
New contents of ImageWidth property.Fields inherited from class jpos.events.DataEvent
status
Fields inherited from class jpos.events.JposEvent
sequenceNumber
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionImageScannerDataEvent(JposBase source, int state, byte[] frameData, int bitsPerPixel, int frameType, int imageHeight, int imageWidth, int imageLength, int imageType)
Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets the data properties stored within the JposDataEvent into the JposCommonProperties object.Generates string describing the data event for logging purposes.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposDataEvent
getPropertySet
Methods inherited from class jpos.events.DataEvent
getStatus
Methods inherited from class jpos.events.JposEvent
getSequenceNumber, getWhen, incrSequenceNumber, updateSequenceNumber
Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
FrameData
public final byte[] FrameDataNew contents of FrameData property. For details, see UPOS specification. -
BitsPerPixel
public final int BitsPerPixelNew contents of BitsPerPixel property. For details, see UPOS specification. -
FrameType
public final int FrameTypeNew contents of FrameType property. For details, see UPOS specification. -
ImageHeight
public final int ImageHeightNew contents of ImageHeight property. For details, see UPOS specification. -
ImageWidth
public final int ImageWidthNew contents of ImageWidth property. For details, see UPOS specification. -
ImageLength
public final int ImageLengthNew contents of ImageLength property. For details, see UPOS specification. -
ImageType
public final int ImageTypeNew contents of ImageType property. For details, see UPOS specification.
-
-
Constructor Details
-
ImageScannerDataEvent
public ImageScannerDataEvent(JposBase source, int state, byte[] frameData, int bitsPerPixel, int frameType, int imageHeight, int imageWidth, int imageLength, int imageType)Constructor. Parameters passed to base class unchanged.- Parameters:
source
- Source, for services implemented with this framework, the (deviceclass.)DeviceClassService object.state
- Status, see UPOS specification.bitsPerPixel
- Holds the value to be stored in BitsPerPixel property.frameData
- Holds the value to be stored in FrameData property.frameType
- Holds the value to be stored in FrameType property.imageHeight
- Holds the value to be stored in ImageHeight property.imageWidth
- Holds the value to be stored in ImageWidth property.imageLength
- Holds the value to be stored in ImageLength property.imageType
- Holds the value to be stored in ImageType property.
-
-
Method Details
-
setDataProperties
public void setDataProperties()Description copied from class:JposDataEvent
Sets the data properties stored within the JposDataEvent into the JposCommonProperties object. The corresponding properties must be defined within derived classes.- Overrides:
setDataProperties
in classJposDataEvent
-
toLogString
Description copied from class:JposDataEvent
Generates string describing the data event for logging purposes.- Overrides:
toLogString
in classJposDataEvent
- Returns:
- Describing string.
-