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 TypeFieldDescriptionintNew contents of BitsPerPixel property.byte[]New contents of FrameData property.intNew contents of FrameType property.intNew contents of ImageHeight property.intNew contents of ImageLength property.intNew contents of ImageType property.intNew contents of ImageWidth property.Fields inherited from class jpos.events.DataEvent
statusFields inherited from class jpos.events.JposEvent
sequenceNumberFields 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 TypeMethodDescriptionvoidSets 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
getPropertySetMethods inherited from class jpos.events.DataEvent
getStatusMethods inherited from class jpos.events.JposEvent
getSequenceNumber, getWhen, incrSequenceNumber, updateSequenceNumberMethods 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:JposDataEventSets the data properties stored within the JposDataEvent into the JposCommonProperties object. The corresponding properties must be defined within derived classes.- Overrides:
setDataPropertiesin classJposDataEvent
-
toLogString
Description copied from class:JposDataEventGenerates string describing the data event for logging purposes.- Overrides:
toLogStringin classJposDataEvent- Returns:
- Describing string.
-