|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IITSOFramework
Provides type-independent access to a presented CM and it's contents.
Field Summary | |
---|---|
static int[] |
READ_ALL
For use with the searchProducts(int[], int[], int[]) method as
a wildcard. |
Method Summary | |
---|---|
CardInformation |
detectCard(boolean isWhiteList,
String... readers)
The DETECT CARD function will return the ITSO Shell Environment Data Group and ITSO Directory Data Group, read and parsed, from a CM if one is present. |
void |
detectCard(IDetectCardCallback callback,
boolean isWhiteList,
String... readers)
Registers the callback to be notified when a CM is presented. |
List<Product> |
getProducts(DirEntry... entries)
The GET PRODUCT function will read and parse a single product from the CM. |
void |
getProducts(IITSOFrameworkCallback cb,
DirEntry... entries)
The GET PRODUCT function will read and parse a single product from the CM. |
void |
searchProducts(IITSOFrameworkCallback cb,
int[] oids,
int[] typs,
int[] ptyps)
The SEARCH PRODUCTS function will search for, read and parse any products on the CM that match the specified search parameters. |
List<Product> |
searchProducts(int[] oids,
int[] typs,
int[] ptyps)
The SEARCH PRODUCTS function will search for, read and parse any products on the CM that match the specified search parameters. |
Field Detail |
---|
static final int[] READ_ALL
searchProducts(int[], int[], int[])
method as
a wildcard.
searchProducts(int[], int[], int[])
Method Detail |
---|
CardInformation detectCard(boolean isWhiteList, String... readers) throws RTDEException
to detect any presented card, call this method with the arguments
detectCard(false)
.
isWhiteList
- If true, the provided list of readers are those that are of
interest. Otherwise, it is a list of those that should be ignoredreaders
- A platform-specific list of readers
RTDEException
- Thrown if there was an issue while connecting with the cardvoid detectCard(IDetectCardCallback callback, boolean isWhiteList, String... readers)
to detect any presented card, call this method with the arguments
detectCard(callback,false)
.
callback
- Used to notify the caller when a card is detected, or if an
error occurred while reading from a cardreaders
- A platform-specific list of readersisWhiteList
- If true, the provided list of readers are those that are of
interest. Otherwise, it is a list of those that should be ignoredList<Product> getProducts(DirEntry... entries) throws RTDEException
A card must have been detected before calling this method
entries
- The directory entry for the product to be read
RTDEException
- Thrown if there was a problem communicating with the card
RepresentException
- Thrown if a card was presented, but removed before the operation
could be completedvoid getProducts(IITSOFrameworkCallback cb, DirEntry... entries)
A card must have been detected before calling this method
cb
- Used to notify the caller when the product has been read, or if an error occurredentries
- Directory entries for the products to be readList<Product> searchProducts(int[] oids, int[] typs, int[] ptyps) throws RTDEException
A card must have been detected before calling this method
oids
- The OIDs of interest. Only products with one of the specified OIDs will be read
(unless READ_ALL
is passed in)typs
- The TYPs of interest. Only products with one of the specified TYPs will be read
(unless READ_ALL
is passed in)ptyps
- The PTYPs of interest. Only products with one of the specified PTYPs will be read
(unless READ_ALL
is passed in)
RTDEException
- Thrown if there was a problem communicating with the card
RepresentException
- Thrown if a card was presented, but removed before the operation
could be completedvoid searchProducts(IITSOFrameworkCallback cb, int[] oids, int[] typs, int[] ptyps)
A card must have been detected before calling this method
cb
- Used to notify the caller when any matching products have been read, or if
an error occurredoids
- The OIDs of interest. Only products with one of the specified OIDs will be read
(unless READ_ALL
is passed in)typs
- The TYPs of interest. Only products with one of the specified TYPs will be read
(unless READ_ALL
is passed in)ptyps
- The PTYPs of interest. Only products with one of the specified PTYPs will be read
(unless READ_ALL
is passed in)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |