Class CheckScannerProperties
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
de.gmxhome.conrad.jpos.jpos_base.checkscanner.CheckScannerProperties
- All Implemented Interfaces:
CheckScannerInterface
,JposBaseInterface
Class containing the check scanner specific properties, their default values and default implementations of
CheckScannerInterface.
For details about properties, methods and method parameters, see UPOS specification, chapter Check Scanner.
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
UPOS property CapAutoContrast.boolean
UPOS property CapAutoGenerateFileID.boolean
UPOS property CapAutoGenerateImageTagData.boolean
UPOS property CapAutoSize.int
UPOS property CapColor.boolean
UPOS property CapConcurrentMICR.boolean
UPOS property CapContrast.boolean
UPOS property CapDefineCropArea.int
UPOS property CapImageFormat.boolean
UPOS property CapImageTagData.boolean
UPOS property CapMICRDevice.boolean
UPOS property CapStoreImageFiles.boolean
UPOS property CapValidationDevice.UPOS property Color.UPOS property ConcurrentMICR.UPOS property Contrast.Default value of Contrast property.int
UPOS property CropAreaCount.int
UPOS property DocumentHeight.Default for UPOS property DocumentHeight.int
UPOS property DocumentWidth.Default for UPOS property DocumentWidth.UPOS property FileID.int
UPOS property FileIndex.byte[]
UPOS property ImageData.UPOS property ImageFormat.int
UPOS property ImageMemoryStatus.int
Default value of ImageMemoryStatus property.UPOS property ImageTagData.boolean
This property will be used internally to verify whether BeginInsertion and EndInsertion are valid operations.int
UPOS property MapMode.UPOS property MaxCropAreas.UPOS property Quality.UPOS property QualityList.UPOS property RemainingImagesEstimate.boolean
This property will be used internally to verify whether BeginRemoval and EndRemoval are valid operations.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
AllowAlwaysSetProperties, AllowDeprecatedMethods, AsyncInputActive, AsyncMode, AutoDisable, CapStatisticsReporting, CapUpdateStatistics, CheckHealthText, Claimed, Claiming, ClaimWaiters, CurrentCommands, CurrentUnitID, DataCount, DataEventEnabled, DataEventList, Device, DeviceEnabled, DeviceServiceDescription, DeviceServiceVersion, DevProps, ErrorString, ErrorUnits, EventCB, EventList, EventSource, EventString, EventUnitID, EventUnits, ExclusiveAllowed, ExclusiveNo, ExclusiveUse, ExclusiveYes, FirstEnableHappened, FlagWhenIdle, FlagWhenIdleStatusValue, FreezeEvents, Index, LogicalName, MaximumConfirmationEventWaitingTime, OutputID, PowerNotify, PowerState, SerializedRequestRunner, SerializedRequests, State, StrictFIFOEventHandling, SuspendedCommands, SuspendedConcurrentCommands, UnitsOnline, UsesSubsystemUnits
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
beginInsertion(int timeout)
Final part of BeginInsertion method.void
beginRemoval(int timeout)
Final part of BeginRemoval method.void
Checks whether mandatory properties can be set to plausible values due to specific capability values.void
Clear data properties.void
clearImage(int by)
Final part of ClearImage method.void
color(int color)
Final part of setting Color.void
concurrentMICR(boolean concurrentMICR)
Final part of setting ConcurrentMICR.void
contrast(int contrast)
Final part of setting Contrast.void
defineCropArea(int cropAreaID, int x, int y, int cx, int cy)
Final part of DefineCropArea method.void
documentHeight(int documentHeight)
Final part of setting DocumentHeight.void
documentWidth(int documentWidth)
Final part of setting DocumentWidth.void
Final part of EndInsertion method.void
Final part of EndRemoval method.void
Final part of setting FileID.void
fileIndex(int fileIndex)
Final part of setting FileIndex.getMM_Factor(int mode)
Compute the size of one inch for the given MapMode constant.int[][]
Returns array containing the MapMode values and the corresponding units per inch.void
imageFormat(int imageFormat)
Final part of setting ImageFormat.void
imageTagData(String imageTagData)
Final part of setting ImageTagData.void
Initialize properties that must be initialized whenever the device will be claimed.void
initOnEnable(boolean enable)
Initialization of properties that must be initialized during deviceEnable.boolean
Initialize properties that must be initialized whenever the device will be enabled the first time-void
Initialization of properties that must be initialized during open.void
mapMode(int mapMode)
Final part of setting MapMode.void
quality(int quality)
Final part of setting Quality.void
retrieveImage(int cropAreaID)
Final part of RetrieveImage method.void
retrieveMemory(int by)
Final part of RetrieveMemory method.void
storeImage(int cropAreaID)
Final part of StoreImage method.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
addProperties, asyncMode, attachWaiter, autoDisable, checkForDeprecation, checkHealth, checkProperties, claim, clearErrorProperties, clearInput, clearOutput, clearOutputErrorProperties, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, getClaimingInstance, handlePowerStateOnEnable, newJposOutputRequest, open, powerNotify, release, releaseWaiter, removeFromPropertySetList, resetStatistics, retrieveStatistics, retryInput, retryOutput, signalWaiter, unitDataCount, updateFirmware, updateFirmware, updateStatistics, waitWaiter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.gmxhome.conrad.jpos.jpos_base.JposBaseInterface
asyncMode, autoDisable, checkHealth, claim, clearInput, clearOutput, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, handlePowerStateOnEnable, newJposOutputRequest, open, powerNotify, release, removeFromPropertySetList, resetStatistics, retrieveStatistics, retryInput, retryOutput, unitDataCount, updateFirmware, updateFirmware, updateStatistics
-
Field Details
-
InsertionMode
public boolean InsertionModeThis property will be used internally to verify whether BeginInsertion and EndInsertion are valid operations. It will be initialized to false during device enable. -
RemovalMode
public boolean RemovalModeThis property will be used internally to verify whether BeginRemoval and EndRemoval are valid operations. It will be initialized to false during device enable. -
CapAutoContrast
public boolean CapAutoContrastUPOS property CapAutoContrast. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
CapAutoGenerateFileID
public boolean CapAutoGenerateFileIDUPOS property CapAutoGenerateFileID. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
CapAutoGenerateImageTagData
public boolean CapAutoGenerateImageTagDataUPOS property CapAutoGenerateImageTagData. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
CapAutoSize
public boolean CapAutoSizeUPOS property CapAutoSize. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
CapColor
public int CapColorUPOS property CapColor. Default: CCL_MONO. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
CapConcurrentMICR
public boolean CapConcurrentMICRUPOS property CapConcurrentMICR. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
CapContrast
public boolean CapContrastUPOS property CapContrast. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
CapDefineCropArea
public boolean CapDefineCropAreaUPOS property CapDefineCropArea. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
CapImageFormat
public int CapImageFormatUPOS property CapImageFormat. Default: CIF_NATIVE. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
CapImageTagData
public boolean CapImageTagDataUPOS property CapImageTagData. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
CapMICRDevice
public boolean CapMICRDeviceUPOS property CapMICRDevice. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
CapStoreImageFiles
public boolean CapStoreImageFilesUPOS property CapStoreImageFiles. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
CapValidationDevice
public boolean CapValidationDeviceUPOS property CapValidationDevice. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
Color
UPOS property Color. Default: null. Must be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method if CapColor specifies more than one color. -
ConcurrentMICR
UPOS property ConcurrentMICR. Default: null. Must be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method if CapMICRDevice and CapConcurrentMICR are true. -
ContrastDef
Default value of Contrast property. Default: null. Can be updated before calling initOnEnable the first time if CapContrast is true and CapAutoContrast is false. -
Contrast
UPOS property Contrast. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
CropAreaCount
public int CropAreaCountUPOS property CropAreaCount. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
DocumentHeightDef
Default for UPOS property DocumentHeight. Default: null. Must be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. Keep in mind that the initial value must be given in 0.001 inch units by default. Will also be used in ClearDataProperties method if CapAutoSize is true to restore DocumentHeight. -
DocumentHeight
public int DocumentHeightUPOS property DocumentHeight. -
DocumentWidthDef
Default for UPOS property DocumentWidth. Default: null. Must be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. Keep in mind that the initial value must be given in 0.001 inch units by default. Will also be used in ClearDataProperties method if CapAutoSize is true to restore DocumentWidth. -
DocumentWidth
public int DocumentWidthUPOS property DocumentWidth. -
FileID
UPOS property FileID. Default: An empty string. -
FileIndex
public int FileIndexUPOS property FileIndex. -
ImageData
public byte[] ImageDataUPOS property ImageData. Default: A zero-length byte array. -
ImageFormat
UPOS property ImageFormat. Default: null. If CapImageFormat specifies more than one format, it must be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
ImageMemoryStatusDef
public int ImageMemoryStatusDefDefault value of ImageMemoryStatus property. Default: IMS_OK. Should be updated before calling initOnClaim. -
ImageMemoryStatus
public int ImageMemoryStatusUPOS property ImageMemoryStatus. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
ImageTagData
UPOS property ImageTagData. Default: An empty string. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
MapMode
public int MapModeUPOS property MapMode. Default: MM_ENGLISH. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. If overwritten, DocumentHeight and DocumentWidth must be given in the corresponding units. -
MaxCropAreas
UPOS property MaxCropAreas. Default: null. Must be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
Quality
UPOS property Quality. Default: null. Must be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method if QualityList contains more than one resolution. -
QualityList
UPOS property QualityList. Default: null. Must be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
RemainingImagesEstimate
UPOS property RemainingImagesEstimate. Default: null. Must be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method.
-
-
Constructor Details
-
CheckScannerProperties
protected CheckScannerProperties(int dev)Constructor.- 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 classJposCommonProperties
-
initOnClaim
public void initOnClaim()Description copied from class:JposCommonProperties
Initialize properties that must be initialized whenever the device will be claimed.- Overrides:
initOnClaim
in classJposCommonProperties
-
initOnFirstEnable
public boolean initOnFirstEnable()Description copied from class:JposCommonProperties
Initialize properties that must be initialized whenever the device will be enabled the first time-- Overrides:
initOnFirstEnable
in classJposCommonProperties
- Returns:
- Returns true in case of first enable.
-
initOnEnable
public void initOnEnable(boolean enable)Description copied from class:JposCommonProperties
Initialization of properties that must be initialized during deviceEnable.- Overrides:
initOnEnable
in classJposCommonProperties
- Parameters:
enable
- True: initialize properties, false: do nothing
-
checkMandatoryProperties
public void checkMandatoryProperties() throws jpos.JposExceptionDescription copied from interface:CheckScannerInterface
Checks whether mandatory properties can be set to plausible values due to specific capability values. If so, these properties will be set to the corresponding values. Otherwise, these properties must be initialized either in the Device's changeDefaults or checkProperties method.
A call of this method in a CheckScanner device factory after the call of the Device's checkProperties method is mandatory.- Specified by:
checkMandatoryProperties
in interfaceCheckScannerInterface
- Throws:
jpos.JposException
- If one of the mandatory properties has not been set previously.
-
color
public void color(int color) throws jpos.JposExceptionDescription copied from interface:CheckScannerInterface
Final part of setting Color. 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 is open,
- color is one of CL_MONO, CL_GRAYSCALE, CL_16, CL_256 or CL_FULL,
- the corresponding bit in CapColor (CCL_MONO, ...) is set.
- Specified by:
color
in interfaceCheckScannerInterface
- Parameters:
color
- New value for Color property.- Throws:
jpos.JposException
- If an error occurs.
-
concurrentMICR
public void concurrentMICR(boolean concurrentMICR) throws jpos.JposExceptionDescription copied from interface:CheckScannerInterface
Final part of setting ConcurrentMICR. 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 is open,
- CapMICRDevice is false or CapConcurrentMICR is true or concurrentMICR is false,
- internal property AllowAlwaysSetProperties is true or concurrentMICR equals the previous value of ConcurrentMICR.
- Specified by:
concurrentMICR
in interfaceCheckScannerInterface
- Parameters:
concurrentMICR
- New value for ConcurrentMICR property.- Throws:
jpos.JposException
- If an error occurs.
-
contrast
public void contrast(int contrast) throws jpos.JposExceptionDescription copied from interface:CheckScannerInterface
Final part of setting Contrast. 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 is enabled,
- 0 ≤ contrast %le; 100 or contrast = AUTOMATIC_CONTRAST and CapAutoContrast = true.
- Specified by:
contrast
in interfaceCheckScannerInterface
- Parameters:
contrast
- New value for Contrast property.- Throws:
jpos.JposException
- If an error occurs.
-
documentHeight
public void documentHeight(int documentHeight) throws jpos.JposExceptionDescription copied from interface:CheckScannerInterface
Final part of setting DocumentHeight. 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 is open,
- documentHeight is not negative,
- documentHeight in combination with MapMode does not specify a height above the initial DocumentHeight value,
- internal property AllowAlwaysSetProperties is true or documentHeight equals the previous value of DocumentHeight.
- Specified by:
documentHeight
in interfaceCheckScannerInterface
- Parameters:
documentHeight
- New value for DocumentHeight property.- Throws:
jpos.JposException
- If an error occurs.
-
documentWidth
public void documentWidth(int documentWidth) throws jpos.JposExceptionDescription copied from interface:CheckScannerInterface
Final part of setting DocumentWidth. 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 is open,
- documentWidth is not negative,
- documentWidth in combination with MapMode does not specify a width above the initial DocumentWidth value,
- internal property AllowAlwaysSetProperties is true or documentWidth equals the previous value of DocumentWidth.
- Specified by:
documentWidth
in interfaceCheckScannerInterface
- Parameters:
documentWidth
- New value for DocumentWidth property.- Throws:
jpos.JposException
- If an error occurs.
-
fileID
Description copied from interface:CheckScannerInterface
Final part of setting FileID. 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 is open,
- fileID is not null,
- internal property AllowAlwaysSetProperties is true or fileID equals the previous value of FileID.
- Specified by:
fileID
in interfaceCheckScannerInterface
- Parameters:
fileID
- New value for FileID property.- Throws:
jpos.JposException
- If an error occurs.
-
fileIndex
public void fileIndex(int fileIndex) throws jpos.JposExceptionDescription copied from interface:CheckScannerInterface
Final part of setting FileIndex. 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 is open,
- internal property AllowAlwaysSetProperties is true or fileIndex equals the previous value of FileIndex.
- Specified by:
fileIndex
in interfaceCheckScannerInterface
- Parameters:
fileIndex
- New value for FileIndex property.- Throws:
jpos.JposException
- If an error occurs.
-
imageFormat
public void imageFormat(int imageFormat) throws jpos.JposExceptionDescription copied from interface:CheckScannerInterface
Final part of setting ImageFormat. 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 is open,
- imageFormat is one of IF_NATIVE, IF_TIFF, IF_BMP, IF_JPEG, or IF_GIF,
- the corresponding bit in CapImageFormat (CIF_NATIVE, ...) is set,
- internal property AllowAlwaysSetProperties is true or imageFormat equals the previous value of ImageFormat.
- Specified by:
imageFormat
in interfaceCheckScannerInterface
- Parameters:
imageFormat
- New value for ImageFormat property.- Throws:
jpos.JposException
- If an error occurs.
-
imageTagData
Description copied from interface:CheckScannerInterface
Final part of setting ImageTagData. 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 is open,
- imageTagData is not null,
- internal property AllowAlwaysSetProperties is true or imageTagData equals the previous value of ImageTagData.
- Specified by:
imageTagData
in interfaceCheckScannerInterface
- Parameters:
imageTagData
- New value for ImageTagData property.- Throws:
jpos.JposException
- If an error occurs.
-
getMM_Factors
public int[][] getMM_Factors()Returns array containing the MapMode values and the corresponding units per inch.- Returns:
- Array containing value pairs for MM_DOTS, MM_TWIPS, MM_ENGLISH and MM_METRIC.
-
getMM_Factor
Compute the size of one inch for the given MapMode constant. For MM_Metric, this is 2540 (since one inch equals 25.4 millimeter). For MM_DOTS, his is the value specified by property Quality. For MM_ENGLISH and MM_TWIPS this is 1000 / 1440, corresponding to the MapMode specification.- Parameters:
mode
- MapMode constant, valid values are MM_DOTS, MM_TWIPS, MM_ENGLISH and MM_METRIC.- Returns:
- Current MapMode units for one inch or null if mode is not a valid MapMode constant.
-
mapMode
public void mapMode(int mapMode) throws jpos.JposExceptionDescription copied from interface:CheckScannerInterface
Final part of setting MapMode. 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 is open,
- mapMode is one of MM_DOTS, MM_TWIPS, MM_ENGLISH or MM_METRIC,
- internal property AllowAlwaysSetProperties is true or mapMode equals the previous value of MapMode.
- Specified by:
mapMode
in interfaceCheckScannerInterface
- Parameters:
mapMode
- New value for MapMode property.- Throws:
jpos.JposException
- If an error occurs.
-
quality
public void quality(int quality) throws jpos.JposExceptionDescription copied from interface:CheckScannerInterface
Final part of setting Quality. 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 is open,
- quality is one of the values stored in the QualityList property,
- internal property AllowAlwaysSetProperties is true or quality equals the previous value of Quality.
- Specified by:
quality
in interfaceCheckScannerInterface
- Parameters:
quality
- New value for Quality property.- Throws:
jpos.JposException
- If an error occurs.
-
beginInsertion
public void beginInsertion(int timeout) throws jpos.JposExceptionDescription copied from interface:CheckScannerInterface
Final part of BeginInsertion method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- timeout is positive or FOREVER.
- Specified by:
beginInsertion
in interfaceCheckScannerInterface
- Parameters:
timeout
- Maximum time in milliseconds BeginInsertion delays execution.- Throws:
jpos.JposException
- If an error occurs or in case of a timeout.
-
beginRemoval
public void beginRemoval(int timeout) throws jpos.JposExceptionDescription copied from interface:CheckScannerInterface
Final part of BeginRemoval method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- timeout is positive or FOREVER.
- Specified by:
beginRemoval
in interfaceCheckScannerInterface
- Parameters:
timeout
- Maximum time in milliseconds BeginRemoval delays execution.- Throws:
jpos.JposException
- If an error occurs or in case of a timeout.
-
clearImage
public void clearImage(int by) throws jpos.JposExceptionDescription copied from interface:CheckScannerInterface
Final part of ClearImage method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- by is one of CLR_ALL, CLR_BY_FILEID, CLR_BY_FILEINDEX or CLR_BY_IMAGETAGDATA.
- Specified by:
clearImage
in interfaceCheckScannerInterface
- Parameters:
by
- One of CLR_ALL, CLR_BY_FILEID, CLR_BY_FILEINDEX or CLR_BY_IMAGETAGDATA, specifies which properties will be used to access the device's image storage.- Throws:
jpos.JposException
- If an error occurs.
-
defineCropArea
public void defineCropArea(int cropAreaID, int x, int y, int cx, int cy) throws jpos.JposExceptionDescription copied from interface:CheckScannerInterface
Final part of DefineCropArea method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- cropAreaID equals CROP_AREA_RESET_ALL or
- CapDefineCropArea is true,
- x between 0 and DocumentWidth,
- y between 0 and DocumentHeight,
- cx between 0 and DocumentWidth - x and
- cy between 0 and DocumentHeight - y.
- Specified by:
defineCropArea
in interfaceCheckScannerInterface
- Parameters:
cropAreaID
- Crop area identifier to be used.x
- Starting x coordinate of the cropping area.y
- Starting y coordinate of the cropping area.cx
- Value to be added to x coordinate to compute the ending x coordinate of the cropping area.cy
- Value to be added to y coordinate to compute the ending y coordinate of the cropping area.- Throws:
jpos.JposException
- If an error occurs.
-
endInsertion
public void endInsertion() throws jpos.JposExceptionDescription copied from interface:CheckScannerInterface
Final part of EndInsertion method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Device entered insertion mode previously.
- Specified by:
endInsertion
in interfaceCheckScannerInterface
- Throws:
jpos.JposException
- If an error occurs.
-
endRemoval
public void endRemoval() throws jpos.JposExceptionDescription copied from interface:CheckScannerInterface
Final part of EndRemoval method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Device entered removal mode previously.
- Specified by:
endRemoval
in interfaceCheckScannerInterface
- Throws:
jpos.JposException
- If an error occurs.
-
retrieveImage
public void retrieveImage(int cropAreaID) throws jpos.JposExceptionDescription copied from interface:CheckScannerInterface
Final part of RetrieveImage method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- cropAreaID equals CROP_AREA_ENTIRE_IMAGE or CapDefineCropArea is true,
- Device is neither in insertion nor in removal mode (no outstanding EndInsertion or EndRemoval).
- Specified by:
retrieveImage
in interfaceCheckScannerInterface
- Parameters:
cropAreaID
- Crop area ID as specified in DefineCropArea or CROP_AREA_ENTIRE_IMAGE.- Throws:
jpos.JposException
- If an error occurs.
-
retrieveMemory
public void retrieveMemory(int by) throws jpos.JposExceptionDescription copied from interface:CheckScannerInterface
Final part of RetrieveMemory method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapStoreImageFiles is true,
- by equals LOCATE_BY_FILEID and FileID is a non-empty string or
- by equals LOCATE_BY_FILEINDEX or
- by equals LOCATE_BY_IMAGETAGDATA, CapImageTagData is true and ImageTagData is a non-empty string.
- Specified by:
retrieveMemory
in interfaceCheckScannerInterface
- Parameters:
by
- One of LOCATE_BY_FILEID, LOCATE_BY_FILEINDEX or LOCATE_BY_IMAGETAGDATA.- Throws:
jpos.JposException
- If an error occurs.
-
storeImage
public void storeImage(int cropAreaID) throws jpos.JposExceptionDescription copied from interface:CheckScannerInterface
Final part of StoreImage method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapStoreImageFiles is true,
- CapDefineCropArea is true or cropAreaID equals CROP_AREA_ENTIRE_IMAGE.
- Specified by:
storeImage
in interfaceCheckScannerInterface
- Parameters:
cropAreaID
- Crop area ID as specified in DefineCropArea or CROP_AREA_ENTIRE_IMAGE.- Throws:
jpos.JposException
- If an error occurs.
-
clearDataProperties
public void clearDataProperties()Description copied from class:JposCommonProperties
Clear data properties. Performed during ClearInput and ClearInputProperties.- Overrides:
clearDataProperties
in classJposCommonProperties
-