Class DriverProperties

All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>

public class DriverProperties extends Properties
Object to store a bunch of key/value pairs used by the input/output drivers/classes.
dp = new DriverProperties()
dp.set('DefaultValue','c:\me.shp')

is the same as:

dp = new DriverProperties('c:\me.shp')

NOTE: dp.get('DefaultValue') is available via the parent class
Typically one uses 'DefaultValue' or 'InputFile' or 'OutputFile'
See Also:
  • Constructor Details

    • DriverProperties

      public DriverProperties()
      Creates new DataProperties
    • DriverProperties

      public DriverProperties(String defaultValue)
      constructor that will autoset the key 'DefaultValue'
      Parameters:
      defaultValue - value portion for the the key 'DefaultValue'
  • Method Details

    • set

      public DriverProperties set(String key, String value)
      Sets a key/value pair in the object.
      It returns the object so you can cascade sets:
      dp.set ('a','value1')
      .set('b','value2')
      ...
      Parameters:
      key - key name
      value - key's value