Class TLcdVPFDatabaseGroup

java.lang.Object
com.luciad.format.vpf.TLcdVPFDatabaseGroup

public class TLcdVPFDatabaseGroup extends Object
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 Details

    • TLcdVPFDatabaseGroup

      public TLcdVPFDatabaseGroup(String aPathName) throws FileNotFoundException, TLcdCodecException
      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 corrupted DHT file.
  • Method Details

    • getPathName

      public String getPathName()
      Returns the full path name of this database group.
      Returns:
      the full path name of this database group.
    • getName

      public String 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

      public TLcdVPFDatabase[] 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

      public String 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 new TLcdVPFDatabase, 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 the DHT file.
      FileNotFoundException - if aSourceName does not point to a DHT file or a directory containing a DHT file.