|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ecebs.rtd.enabler.ITSOFramework
public class ITSOFramework
Provides a means of detecting and reading CMDs
Field Summary |
---|
Fields inherited from interface com.ecebs.rtd.enabler.IITSOFramework |
---|
READ_ALL |
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. |
static IITSOFramework |
getInstance()
Get an instance of IITSOFramework . |
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static IITSOFramework getInstance()
IITSOFramework
. The instance returned will be
appropriate for the platform associated with the initialised ConfigManager
.
Note that the instance is a singleton.
IITSOFramework
public void detectCard(IDetectCardCallback callback, boolean isWhiteList, String... readers)
IITSOFramework
to detect any presented card, call this method with the arguments
detectCard(callback,false)
.
detectCard
in interface IITSOFramework
callback
- Used to notify the caller when a card is detected, or if an
error occurred while reading from a cardisWhiteList
- 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 readerspublic void getProducts(IITSOFrameworkCallback cb, DirEntry... entries)
IITSOFramework
A card must have been detected before calling this method
getProducts
in interface IITSOFramework
cb
- Used to notify the caller when the product has been read, or if an error occurredentries
- Directory entries for the products to be readpublic void searchProducts(IITSOFrameworkCallback cb, int[] oids, int[] typs, int[] ptyps)
IITSOFramework
A card must have been detected before calling this method
searchProducts
in interface IITSOFramework
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 IITSOFramework.READ_ALL
is passed in)typs
- The TYPs of interest. Only products with one of the specified TYPs will be read
(unless IITSOFramework.READ_ALL
is passed in)ptyps
- The PTYPs of interest. Only products with one of the specified PTYPs will be read
(unless IITSOFramework.READ_ALL
is passed in)public CardInformation detectCard(boolean isWhiteList, String... readers) throws RTDEException
IITSOFramework
to detect any presented card, call this method with the arguments
detectCard(false)
.
detectCard
in interface IITSOFramework
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 cardpublic List<Product> getProducts(DirEntry... entries) throws RTDEException
IITSOFramework
A card must have been detected before calling this method
getProducts
in interface IITSOFramework
entries
- The directory entry for the product to be read
RTDEException
- Thrown if there was a problem communicating with the cardpublic List<Product> searchProducts(int[] oids, int[] typs, int[] ptyps) throws RTDEException
IITSOFramework
A card must have been detected before calling this method
searchProducts
in interface IITSOFramework
oids
- The OIDs of interest. Only products with one of the specified OIDs will be read
(unless IITSOFramework.READ_ALL
is passed in)typs
- The TYPs of interest. Only products with one of the specified TYPs will be read
(unless IITSOFramework.READ_ALL
is passed in)ptyps
- The PTYPs of interest. Only products with one of the specified PTYPs will be read
(unless IITSOFramework.READ_ALL
is passed in)
RTDEException
- Thrown if there was a problem communicating with the card
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |