Package org.locationtech.jts.jump.io
Class DriverProperties
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<Object,Object>
-
- java.util.Properties
-
- org.locationtech.jts.jump.io.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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.Properties
defaults
-
-
Constructor Summary
Constructors Constructor Description DriverProperties()
Creates new DataPropertiesDriverProperties(String defaultValue)
constructor that will autoset the key 'DefaultValue'
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DriverProperties
set(String key, String value)
Sets a key/value pair in the object.-
Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
-
-
-
Constructor Detail
-
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 Detail
-
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 namevalue
- key's value
-
-