class PassportService {
/**
* Lists the data groups present on this passport.
*
* @return a list of file identifiers
*
* @throws IOException if something goes wrong
*/
public short[] readDataGroupList() throws IOException {
byte[] tag = { 0x5C };
byte[] tagList = readObject(PassportFileService.EF_COM, tag).getValueAsBytes();
short[] files = new short[tagList.length];
for (int i = 0; i < files.length; i++) {
files[i] = Util.lookupFIDbyTag(tagList[i]);
}
return files;
}
}