public class LDSFileUtil extends Object
Constructor and Description |
---|
LDSFileUtil() |
Modifier and Type | Method and Description |
---|---|
static org.jmrtd.lds.AbstractLDSFile |
getLDSFile(short fid,
InputStream inputStream)
Factory method for creating LDS files for a given input stream.
|
static short |
lookupDataGroupNumberByFID(short fid)
Finds a data group number by file identifier.
|
static int |
lookupDataGroupNumberByTag(int tag)
Finds a data group number for an ICAO tag.
|
static short |
lookupFIDByDataGroupNumber(int number)
Finds an ICAO tag for a data group number.
|
static short |
lookupFIDByTag(int tag)
Finds a file identifier for an ICAO tag.
|
static String |
lookupFileNameByFID(int fid)
Returns a mnemonic name corresponding to the file represented by the
given file identifier, such as "EF_COM", "EF_SOD", or "EF_DG1".
|
static String |
lookupFileNameByTag(int tag)
Returns a mnemonic name corresponding to the file represented by the
given ICAO tag, such as "EF_COM", "EF_SOD", or "EF_DG1".
|
static int |
lookupTagByDataGroupNumber(int number)
Finds an ICAO tag for a data group number.
|
static short |
lookupTagByFID(short fid)
Finds an ICAO tag for a file identifier.
|
public static org.jmrtd.lds.AbstractLDSFile getLDSFile(short fid, InputStream inputStream) throws IOException
fid
- file identifierinputStream
- a given input streamIOException
- on reading error from the input streampublic static short lookupFIDByTag(int tag)
tag
- an ICAO tag (the first byte of the EF)public static int lookupDataGroupNumberByTag(int tag)
tag
- an ICAO tag (the first byte of the EF)public static int lookupTagByDataGroupNumber(int number)
number
- a data group number (1-16)public static short lookupFIDByDataGroupNumber(int number)
number
- a data group number (1-16)public static short lookupTagByFID(short fid)
fid
- a file identifierpublic static short lookupDataGroupNumberByFID(short fid)
fid
- a file idpublic static String lookupFileNameByTag(int tag)
tag
- an ICAO tag (the first byte of the EF)public static String lookupFileNameByFID(int fid)
fid
- an LDS file identifiersCopyright © 2016. All rights reserved.