public class DocumentReaderDevice
extends java.lang.Object
| Constructor and Description |
|---|
DocumentReaderDevice()
Initializes the Document Reader software.
|
DocumentReaderDevice(java.lang.String proppath)
Initializes the Document Reader software with a specified property path.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEventListener(java.util.EventListener ev)
Sets an event handler method to a specified event.
|
void |
close()
Ends using of the current device.
|
Certificates |
getCertificateManager()
Returns the certificate manager that stores
certificates for task of the current
DocumentReaderDevice device. |
static java.util.ArrayList<java.lang.String> |
getDeviceList()
Collects a list of device names for
useDevice(String) method. |
java.lang.String |
getDeviceName()
Returns the name of the device.
|
Engine |
getEngine()
Returns the data analyzer module of the used
DocumentReaderDevice. |
Certificates |
getGlobalCertificateManager()
Returns the certificate manager that stores
certificates for all task of the entire process.
|
Peripherals |
getPeripherals()
Returns the device peripheral controller module
of the used
DocumentReaderDevice. |
java.lang.String |
getProperty(java.lang.String property)
Returns a property value of the PassportReader system.
|
java.util.ArrayList<ECardReader> |
getReaders()
Returns a list of all the electronic card reader
(Smartcard, RFID card or Magnetic stripe card) module(s) of the used
DocumentReaderDevice. |
DocScanner |
getScanner()
Returns the document scanner module of the used
DocumentReaderDevice. |
java.lang.String |
getVersion(char component)
Returns version information of the API.
|
void |
removeEventListener(java.util.EventListener ev)
Removes an event handler method from a specified event.
|
void |
setProperty(java.lang.String property,
java.lang.String value)
Sets a property value of the PassportReader system.
|
DocumentReaderDevice |
useDevice(int devno)
Starts using a device.
|
DocumentReaderDevice |
useDevice(java.lang.String devname)
Starts using a device.
|
public DocumentReaderDevice()
throws General
Generalpublic DocumentReaderDevice(java.lang.String proppath)
throws General
proppath - Name of the xml node of the gxsd.dat file from where the
initial data should be read.Generalpublic void addEventListener(java.util.EventListener ev)
throws General
ev - The event handler class and method.Generalpublic void removeEventListener(java.util.EventListener ev)
throws General
ev - The event handler class and method.Generalpublic static java.util.ArrayList<java.lang.String> getDeviceList()
throws General
useDevice(String) method.Generalpublic DocumentReaderDevice useDevice(int devno) throws General
devno - Ordinal number of the device to use.Generalpublic DocumentReaderDevice useDevice(java.lang.String devname) throws General
devname - Name of the device to use. The list of available names can
be requested from the getDeviceList().Generalpublic java.lang.String getDeviceName()
throws General
Generalpublic java.lang.String getVersion(char component)
component - Character 'A' for version of the java interface
files, or character 'S' for version of the PassportReader system.public void setProperty(java.lang.String property,
java.lang.String value)
throws General
property - The name of the property.value - The value of the property.Generalpublic java.lang.String getProperty(java.lang.String property)
throws General
property - The name of the property.Generalpublic Certificates getGlobalCertificateManager() throws General
Generalpublic Certificates getCertificateManager() throws General
DocumentReaderDevice device.Generalpublic Peripherals getPeripherals() throws General
DocumentReaderDevice.Generalpublic DocScanner getScanner()
DocumentReaderDevice.public java.util.ArrayList<ECardReader> getReaders()
DocumentReaderDevice.public Engine getEngine()
DocumentReaderDevice.ARH Passport Reader v 2.2.0.17 / 2017 July 19 14:58