Class CheckScannerDataEvent
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.checkscanner.CheckScannerDataEvent
- All Implemented Interfaces:
Serializable
Data event implementation for CheckScanner devices.
- See Also:
- Serialized Form
-
Field Summary
FieldsModifier and TypeFieldDescriptionNew document height in dot units.New document width in dot units.New contents of FileID property.intNew contents of FileIndex property.byte[]New contents of ImageData property.New contents of ImageTagData property.Resolution of the scan image in DPI.Fields inherited from class jpos.events.DataEvent
statusFields inherited from class jpos.events.JposEvent
sequenceNumberFields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
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
-
FileID
New contents of FileID property. Must be set if CapAutoGenerateFileID is true. For details, see UPOS specification. -
FileIndex
public final int FileIndexNew contents of FileIndex property. For details, see UPOS specification. -
ImageData
public final byte[] ImageDataNew contents of ImageData property. For details, see UPOS specification. -
ImageTagData
New contents of ImageTagData property. Must be set if CapAutoGenerateImageTagData is true. For details, see UPOS specification. -
DocumentHeight
New document height in dot units. See Quality for details. -
DocumentWidth
New document width in dot units. See Quality for details. -
Quality
Resolution of the scan image in DPI. For example, if Quality equals 320 and the scan image is 3 x 6 inch, DocumentHeight must be equal to 960 and DocumentWidth equal to 1920.
-
-
Constructor Details
-
CheckScannerDataEvent
public CheckScannerDataEvent(JposBase source, int state, int fileIndex, byte[] imageData, Integer documentHeight, Integer documentWidth, String fileID, String imageTagData, Integer quality)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.fileIndex- Value to be set in property FileIndex before this DataEvent will be delivered.imageData- Value to be set in property ImageData before this DataEvent will be delivered.documentHeight- Document height in dots, used to compute property DocumentHeight before this DataEvent will be delivered.documentWidth- Document width in dots, used to compute property DocumentWidth before this DataEvent will be delivered.fileID- Value to be set in property FileID before this DataEvent will be delivered.imageTagData- Value to be set in property ImageTagData before this DataEvent will be delivered.quality- Value to be set in property Quality before this DataEvent will be delivered.
-
-
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.
-