Preview

advertisement
EUROPEAN COMMITTEE FOR STANDARDIZATION
COMITÉ EUROPÉEN DE NORMALISATION
EUROPÄISCHES KOMITEE FÜR NORMUNG
CWA 13937-10
Vo
WORKSHOP
AGREEMENT
August 2000
or
iew
ev
be
J/eXtensions for Financial Services (J/XFS) for the Java Platform - Part
10: Check Reader/Scanner Device Class Interface - Programmer's
Reference
Pr
eld
Dit document mag slechts op een stand-alone PC worden geinstalleerd. Gebruik op een netwerk is alleen.
toestaan als een aanvullende licentieovereenkomst voor netwerkgebruik met NEN is afgesloten.
This document may only be used on a stand-alone PC. Use in a network is only permitted when
a supplementary license agreement for us in a network with NEN has been concluded.
ICS 35.240.40
This CEN Workshop Agreement can in no way be held as being an official standard
as developed by CEN National Members.
© 2000 CEN
All rights of exploitation in any form and by any means reserved world-wide for
CEN National Members
Ref. No CWA 13937-10:2000 E
Rue de Stassart, 36 • B-1050 Bruxelles
Tel : +32 2 550 08 11 • Fax : +32 2 550 08 19
Dit document is een voorbeeld van NEN / This document is a preview by NEN
Page 2
CWA 13937-10:2000
Foreword
This CWA contains the specifications that define the J/eXtensions for Financial Services (J/XFS) for the Java TM
Platform, as developed by the J/XFS Forum and endorsed by the CEN/ISSS J/XFS Workshop. J/XFS provides
an API for Java applications which need to access financial devices. It is hardware independent and, by using
100% pure Java, also operating system independent.
The CEN/ISSS J/XFS Workshop gathers suppliers (among others the J/XFS Forum members), service providers
as well as banks and other financial service companies. A list of companies participating in this Workshop and
in support of this CWA is available from the CEN/ISSS Secretariat. The specification was agreed upon by the
J/XFS Workshop Meeting of 1999-12-15/16 in Geneva and a subsequent electronic review by the Workshop
participants, and the final version was sent to CEN for publication on 2000/06-21.
Vo
The specification is continuously reviewed and commented in the CEN/ISSS J/XFS Workshop. It is therefore
expected that an update of the specification will be published in due time as a CWA, superseding this one. The
information published in this CWA is furnished for informational purposes only. CEN/ISSS makes no warranty
expressed or implied, with respect to this document. Updates of the specification will be available from the
CEN/ISSS J/XFS Workshop public web pages pending their integration in a new version of the CWA (see:
http://www.cenorm.be/isss/workshop/j-XFS/cwa-updates).
or
The J/XFS specifications are now further developed in the CEN/ISSS J/XFS Workshop. CEN/ISSS Workshops
are open to all interested parties offering to contribute. Parties interested in participating should contact the
CEN/ISSS Secretariat ([email protected]). To submit questions and comments for the J/XFS specifications,
please contact the CEN/ISSS Secretariat ([email protected]) who will be forwarding them to the J/XFS
Workshop.
Questions and comments can also be submitted to the members of the J/XFS Forum, who are all CEN/ISSS
J/XFS Workshop members, through the J/XFS Forum web-site http:///www.jxfs.com
be
iew
ev
Pr
This CWA is composed of the following parts:
Part 1: J/eXtensions for Financial Services (J/XFS) for the Java Platform - Base Architecture Programmer's Reference
Part 2: J/eXtensions for Financial Services (J/XFS) for the Java Platform - Pin Keypad Device Class
Interface - Programmer's Reference
Part 3: J/eXtensions for Financial Services (J/XFS) for the Java Platform - Magnetic Stripe & Chip Card
Device Class Interface - Programmer's Reference
Part 4: J/eXtensions for Financial Services (J/XFS) for the Java Platform - Text Input/Output Device Class
Interface - Programmer's Reference
Part 5: J/eXtensions for Financial Services (J/XFS) for the Java Platform - Cash Dispenser, Recycler and
ATM Interface - Programmer's Reference
Part 6: J/eXtensions for Financial Services (J/XFS) for the Java Platform - Printer Device Class Interface Programmer's Reference
Part 7: J/eXtensions for Financial Services (J/XFS) for the Java Platform - Alarm Device - Programmer's
Reference
Part 8: J/eXtensions for Financial Services (J/XFS) for the Java Platform - Sensors and Indicators Unit
Device Class Interface - Programmer's Reference
Part 9: J/eXtensions for Financial Services (J/XFS) for the Java Platform - Depository Device Class
Interface - Programmer's Reference
Part 10: J/eXtensions for Financial Services (J/XFS) for the Java Platform - Check Reader/Scanner Device
Class Interface - Programmer's Reference
eld
Note:
Java and all Java-based trademarks and logos are trademarks of Sun Microsystems, Inc. The
Java Trademark Guidelines are currently available on the web at
http://java.sun.com/nav/business/trademark_guidelines.html.
All other trademarks are trademarks of their respective owners.
Dit document is een voorbeeld van NEN / This document is a preview by NEN
Page 3
CWA 13937-10:2000
Contents
1
SCOPE............................................................................................................................................................4
2
OVERVIEW ..................................................................................................................................................5
2.1
2.2
2.3
3
DESCRIPTION ............................................................................................................................................5
CLASSES AND INTERFACES .......................................................................................................................6
SUPPORT CLASSES....................................................................................................................................7
DEVICE BEHAVIOR...................................................................................................................................8
DEVICE OPEN().........................................................................................................................................8
Vo
3.1
4
CLASSES AND INTERFACES ...................................................................................................................9
4.1
4.2
4.3
4.4
5
SUPPORT CLASSES..................................................................................................................................20
5.1
5.2
JXFSCHKDATA ......................................................................................................................................20
JXFSCHKPROCESSDATA........................................................................................................................21
or
6
ACCESS TO PROPERTIES ............................................................................................................................9
EXCEPTIONS .............................................................................................................................................9
IJXFSCHECKREADERCONTROL ..............................................................................................................10
IJXFSCOMPLEXCHECKDEVICE ...............................................................................................................15
CODES .........................................................................................................................................................24
6.1
6.2
6.3
6.4
ERROR CODES ........................................................................................................................................24
STATUS CODES .......................................................................................................................................24
OPERATION CODES.................................................................................................................................24
CONSTANTS............................................................................................................................................25
be
iew
ev
Pr
eld
Dit document is een voorbeeld van NEN / This document is a preview by NEN
Page 4
CWA 13937-10:2000
1 Scope
This document describes the Check Reader/Scanner class based on the basic
architecture of J/XFS which is similar to the JavaPOS architecture. It is event
driven and asynchronous.
Three basic levels are defined in JavaPOS. For J/XFS this model is extended by a
communication layer, which provides device communication that allows distribution
of applications and devices within a network. So we have the following layers in
J/XFS :
Application
Device Control and Device Manager
Device Communication
Device Service
Vo
or
Application developers program against control objects and the Device Manager
which reside in the Device Control layer. This is the usual interface between
applications and J/XFS devices. Device Control objects access the Device Manager
to find an associated Device Service. Device Service objects provide the functionality
to access the real device (i.e. like a device driver).
During application startup the Device Manager is responsible for locating the
desired Device Service object and attaching this to the requesting Device Control
object. Location and/or routing information for the Device Manager reside in a
central repository.
be
iew
ev
Pr
To support Check Reader/Scanner devices the basic Device Control structure is
extended with various properties and methods specific to this device which are
described on the following pages.
eld
Dit document is een voorbeeld van NEN / This document is a preview by NEN
Page 5
CWA 13937-10:2000
2 Overview
2.1
Description
The J/XFS Check Reader/Scanner Device Support allows for the operation of devices with
a range of features, from small hand-held read-only devices where checks are manually
swiped through one at a time, to much larger devices which automatically feed checks by
the batch past a reader, an encoder, an endorser, an optional image scanner, to be sorted
into one of several pockets.
Vo
In the U.S. checks are always encoded in magnetic ink for reading by Magnetic Ink
Recognition (MICR), and a single font is always used. In other areas some countries use
MICR and some use Optical Character Recognition (OCR) character sets, with different
fonts.
be
iew
ev
Pr
or
As well as the rest of J/XFS device controls, J/XFS Check Reader/Scanner devices use the
event driven model and the same behavioral model. Therefore, the application will
instantiate a J/XFS Check Reader/Scanner Device Control Object and then use the
available methods to do I/O. When an I/O method is called, the J/XFS Check
Reader/Scanner Device Service will attempt to process the requested I/O. If the request is
invalid or an exception is encountered, the application will be notified by a J/XFS
exception. Completion of the request will be reported by an event. Thus the application
must register itself with the J/XFS Check Reader/Scanner Device Control Object for the
various types of events it wishes to handle.
eld
Dit document is een voorbeeld van NEN / This document is a preview by NEN
Page 6
CWA 13937-10:2000
2.2
Classes and Interfaces
The following classes and interfaces are used by the J/XFS CheckReader Device Controls.
In order to support the definition of the different properties of the different devices (see
Introduction), the Device Controls are defined in a class hierarchy.
Class or
Interface
Interface
Name
Description
Base interface for all the
device controls. Contains
methods common to all the
device controls.
IJxfsCheckReaderControl Base interface for
CheckReader controls.
Contains method declarations
specific to CheckReader
controls.
IJxfsComplexCheckDevice Interface for complex check
devices.
Contains method declarations
specific to complex check
devices.
Base class for all the device
JxfsBaseControl
controls. Contains properties
common to all the device
controls.
Base class for CheckReader
JxfsCheckReader
controls. Contains properties
specific to CheckReader
device controls.
IJxfsBaseControl
Vo
Interface
Interface
Class
Extends:
IJxfsBaseControl
iew
ev
Pr
Implements:
IJxfsCheckReaderCont
rol
be
or
Class
Extends or Implements
eld
Dit document is een voorbeeld van NEN / This document is a preview by NEN
Page 7
CWA 13937-10:2000
2.3
Support Classes
Class or Name
Inter-face
Interface JxfsConst
Interface
Description
JxfsCHKConst
Vo
Class
JxfsCHKData
Class
JxfsCHKProcessData
Class
EventEvent
or
Class
JxfsException
--
--
Extends:
JxfsType
Extends:
JxfsType
Extends:
JxfsEvent
Extends:
java.lang.Exception
be
iew
ev
Pr
Interface containing the Jxfs
constants that are common to
several device categories
Interface containing the Jxfs
constants that are common to
all the CheckReader device
controls.
Data class that contains data
returned in Operation
Complete events for
CheckReader readData()
operation.
Data class that contains data
required to perform check
processing.
The Device Service creates
Event event instances of this
class and delivers them
through the J/XFS
CheckReader Device
Control's event callbacks to
the application
Exception class. The J/XFS
CheckReader Device Control
creates and throws
exceptions on method failure
and property access failure.
Extends / Implements
eld
Dit document is een voorbeeld van NEN / This document is a preview by NEN
Page 8
CWA 13937-10:2000
3 Device behavior
3.1
Device open()
During the device open call the Device Service tries to access the connected device. This
fails for the following circumstances:
JXFS_E_HARDWAREERROR If the device could not be accessed. This may be that
the device is not connected or broken.
JXFS_E_OPEN
The open was already done by this Device Control.
be
iew
ev
Pr
or
Vo
eld
Dit document is een voorbeeld van NEN / This document is a preview by NEN
Page 9
CWA 13937-10:2000
4 Classes and Interfaces
All operation methods return an identificationID. If a method cannot be processed, a
JxfsException is thrown.
After processing has taken place, an OperationCompleteEvent is generated which contains
detailed information about the status of the operation, i.e., if it failed or succeeded, and
eventually additional data as a result.
The Constants, Error Codes, Exceptions, Status Codes and Support Classes that are used in
the methods are described in special chapters at the end of the documentation.
Access to properties
Vo
4.1
Please note the following when determining the meaning of a property's Access:
R
W
R/W
The property is read only.
The property is write only.
The property may be read or written.
To access these properties the applications must use the appropriated methods specified by
the JavaBean specification.
or
getProperty
be
setProperty
Syntax
Description
Parameter
Event
Exceptions
void setProperty (value) throws JxfsException
Sets the requested property.
The desired property value.
No additional events are generated
Some possible JxfsException value codes:
JXFS_E_CLOSED
JXFS_E_UNREGISTERED
JXFS_E_REMOTE
JXFS_E_PARAMETER_INVALID
Exceptions
eld
4.2
Property getProperty () throws JxfsException
Returns the requested property.
None
No additional events are generated.
Some possible JxfsException value codes:
JXFS_E_CLOSED
JXFS_E_UNREGISTERED
JXFS_E_REMOTE
iew
ev
Pr
Syntax
Description
Parameter
Event
Exceptions
All the methods described for the specified interfaces can throw at least some of the
following exceptions:
Value
JXFS_E_CLOSED
JXFS_E_UNREGISTERED
JXFS_E_REMOTE
JXFS_E_CLAIMED
JXFS_E_PARAMETER_INVALID
JXFS_E_NOT_SUPPORTED
Meaning
The Device Control has not been opened.
The device is not registered at the
JxfsDeviceManager.
A network error ocurred.
The device is already claimed..
A parameter is invalid.
The function is not supported.
Only if a method can throw additional exceptions this is explicitly mentioned.
Dit document is een voorbeeld van NEN / This document is a preview by NEN
Bestelformulier
Stuur naar:
NEN Standards Products & Services
t.a.v. afdeling Klantenservice
Antwoordnummer 10214
2600 WB Delft
NEN Standards Products & Services
Postbus 5059
2600 GB Delft
Vlinderweg 6
2623 AX Delft
T (015) 2 690 390
F (015) 2 690 271
Ja, ik bestel
__ ex. CWA 13937-10:2000 en J/eXtensions for Financial Services (J/XFS)
for the Java Platform - Part 10: Check Reader/Scanner Device Class Interface
- Programmer's Reference
www.nen.nl/normshop
€ 52.00
Wilt u deze norm in PDF-formaat? Deze bestelt u eenvoudig via
www.nen.nl/normshop
Gratis e-mailnieuwsbrieven
Retourneren
Wilt u op de hoogte blijven van de laatste ontwikkelingen op het gebied van normen,
Fax: (015) 2 690 271
E-mail: [email protected]
Post: NEN Standards Products
& Services,
t.a.v. afdeling Klantenservice
Antwoordnummer 10214,
2600 WB Delft
(geen postzegel nodig).
normalisatie en regelgeving? Neem dan een gratis abonnement op een van onze
e-mailnieuwsbrieven. www.nen.nl/nieuwsbrieven
Gegevens
Bedrijf / Instelling
T.a.v.
O M
O V
Voorwaarden
• De prijzen zijn geldig
tot 31 december 2016,
E-mail
tenzij anders aangegeven.
• Alle prijzen zijn excl. btw,
Klantnummer NEN
verzend- en handelingskosten
Uw ordernummer
BTW nummer
en onder voorbehoud bij
o.m. ISO- en IEC-normen.
Postbus / Adres
• Bestelt u via de normshop een
PostcodePlaats
pdf, dan betaalt u geen
handeling en verzendkosten.
TelefoonFax
• Meer informatie: telefoon
(015) 2 690 391, dagelijks
Factuuradres (indien dit afwijkt van bovenstaand adres)
van 8.30 tot 17.00 uur.
Postbus / Adres
• Wijzigingen en typefouten
in teksten en prijsinformatie
PostcodePlaats
voorbehouden.
• U kunt onze algemene
voorwaarden terugvinden op:
DatumHandtekeningwww.nen.nl/leveringsvoorwaarden.
Normalisatie: de wereld op één lijn.
preview - 2016
Download