public class TLcdVPFDatabaseGroup extends Object
DHT
files.Constructor and Description |
---|
TLcdVPFDatabaseGroup(String aPathName)
Creates a new TLcdVPFDatabaseGroup with the given path.
|
Modifier and Type | Method and Description |
---|---|
protected TLcdVPFDatabase |
createDatabase(String aPath)
Instantiates a new
TLcdVPFDatabase , initialized with the given path. |
TLcdVPFDatabase[] |
getDatabases()
Returns an array containing all databases included in this database group, or an array of length zero if none exist.
|
String |
getDescription()
Return a description of this database group.
|
String |
getName()
Returns the name of this database group, which corresponds to the last part
of the path name.
|
String |
getPathName()
Returns the full path name of this database group.
|
public TLcdVPFDatabaseGroup(String aPathName) throws FileNotFoundException, TLcdCodecException
aPathName
- the path of the root directory of this database group.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 corrupted DHT
file.public String getPathName()
public String getName()
public TLcdVPFDatabase[] getDatabases()
public String getDescription()
protected TLcdVPFDatabase createDatabase(String aPath) throws TLcdCodecException, FileNotFoundException
TLcdVPFDatabase
, initialized with the given path.aPath
- the path containing the VPF data for which a database should be instantiated.TLcdCodecException
- if a problem occurs during the decoding of the DHT
file.FileNotFoundException
- if aSourceName
does not point to a DHT
file or a directory
containing a DHT
file.