Package com.luciad.format.vpf
Class TLcdVPFDatabaseGroup
java.lang.Object
com.luciad.format.vpf.TLcdVPFDatabaseGroup
Models a VPF directory containing multiple VPF databases.
It offers functionality for retrieving all VPF databases within that directory.
The database search is based on the presence of
DHT
files.-
Constructor Summary
ConstructorDescriptionTLcdVPFDatabaseGroup
(String aPathName) Creates a new TLcdVPFDatabaseGroup with the given path. -
Method Summary
Modifier and TypeMethodDescriptionprotected TLcdVPFDatabase
createDatabase
(String aPath) Instantiates a newTLcdVPFDatabase
, initialized with the given path.Returns an array containing all databases included in this database group, or an array of length zero if none exist.Return a description of this database group.getName()
Returns the name of this database group, which corresponds to the last part of the path name.Returns the full path name of this database group.
-
Constructor Details
-
TLcdVPFDatabaseGroup
Creates a new TLcdVPFDatabaseGroup with the given path.- Parameters:
aPathName
- the path of the root directory of this database group.- Throws:
FileNotFoundException
- if the given path does not point to an existing directory.TLcdCodecException
- if one of the databases included in this database group has a corruptedDHT
file.
-
-
Method Details
-
getPathName
Returns the full path name of this database group.- Returns:
- the full path name of this database group.
-
getName
Returns the name of this database group, which corresponds to the last part of the path name.- Returns:
- a general description of this database group.
-
getDatabases
Returns an array containing all databases included in this database group, or an array of length zero if none exist.- Returns:
- an array containing all databases included in this database group, or an array of length zero if none exist.
-
getDescription
Return a description of this database group. The path name is used as description.- Returns:
- a description of this database group.
-
createDatabase
protected TLcdVPFDatabase createDatabase(String aPath) throws TLcdCodecException, FileNotFoundException Instantiates a newTLcdVPFDatabase
, initialized with the given path.- Parameters:
aPath
- the path containing the VPF data for which a database should be instantiated.- Returns:
- a VPF database, initialized with the given path.
- Throws:
TLcdCodecException
- if a problem occurs during the decoding of theDHT
file.FileNotFoundException
- ifaSourceName
does not point to aDHT
file or a directory containing aDHT
file.
-