public final class DataBaseLoader extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SMARTCARDS_XML
The name of the file containing the default smart cards database.
|
static String |
SMARTCARDS_XSD
The name of the smart cards database schema.
|
| Constructor and Description |
|---|
DataBaseLoader() |
| Modifier and Type | Method and Description |
|---|---|
static DataBase |
loadDefault()
Loads the default smart cards database from the class path.
|
static DataBase |
loadFromStream(InputStream input)
Initialises the database by parsing the XML file passed in as an input
stream.
|
public static final String SMARTCARDS_XSD
public static final String DEFAULT_SMARTCARDS_XML
public static DataBase loadDefault() throws IOException, SmartCardException
IOExceptionSmartCardExceptionpublic static DataBase loadFromStream(InputStream input) throws SmartCardException
input - the database file as a stream; the stream will always be closed
by the time the method returns. If the stream is null, the method
exits immediately without any complaint, in order to make smartcards'
loading optional.SmartCardExceptionCopyright © 2012-2014 Andrea Funtò. See here for terms and conditions.