Methods Summary |
---|
public int | getACFCount()Returns number of entries in the ACIF file
return ACFs.size();
|
public Location | getACFPath(int index)Returns location of the pointed ACF
return ((ACF)ACFs.elementAt(index)).getPath();
|
public byte[] | getAID(int index)Returns AID of the pointed entry (ACF)
return ((ACF)ACFs.elementAt(index)).getAID();
|
public void | load()Loads ACIF object from the file system
ACIF = new Vector();
resetLoader(ACIF, null, null);
parseDF(location.path);
readACIF();
|
private void | readACIF()Reads ACIF data from the ACIF vector.
for (int i = 0; i < ACIF.size(); i++) {
ACF acf = new ACF();
TLV t = ((TLV)ACIF.elementAt(i)).child;
if (t.type == TLV.OCTETSTR_TYPE) { /* aid */
acf.setAID(t.getValue());
t = t.next;
}
if (t.type == TLV.SEQUENCE_TYPE) { /* location */
acf.setPath(files.pathToLocation(t));
}
ACFs.addElement(acf);
}
|