public class TLcdVPFDatabaseGroup
extends java.lang.Object
DHT
files.Constructor and Description |
---|
TLcdVPFDatabaseGroup(java.lang.String aPathName)
Creates a new TLcdVPFDatabaseGroup with the given path.
|
Modifier and Type | Method and Description |
---|---|
protected TLcdVPFDatabase |
createDatabase(java.lang.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.
|
java.lang.String |
getDescription()
Return a description of this database group.
|
java.lang.String |
getName()
Returns the name of this database group, which corresponds to the last part
of the path name.
|
java.lang.String |
getPathName()
Returns the full path name of this database group.
|
public TLcdVPFDatabaseGroup(java.lang.String aPathName) throws java.io.FileNotFoundException, TLcdCodecException
aPathName
- the path of the root directory of this database group.java.io.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 java.lang.String getPathName()
public java.lang.String getName()
public TLcdVPFDatabase[] getDatabases()
public java.lang.String getDescription()
protected TLcdVPFDatabase createDatabase(java.lang.String aPath) throws TLcdCodecException, java.io.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.java.io.FileNotFoundException
- if aSourceName
does not point to a DHT
file or a directory
containing a DHT
file.