Package org.codice.ddf.platform.io
Class CfgStrategy
java.lang.Object
org.codice.ddf.platform.io.CfgStrategy
- All Implemented Interfaces:
org.codice.ddf.platform.io.internal.PersistenceStrategy
public class CfgStrategy
extends Object
implements org.codice.ddf.platform.io.internal.PersistenceStrategy
Class that persists configuration properties using the Felix .cfg file format.
All values are stored as strings. The returned Dictionary from read(InputStream) will always consist of string values that must be separately parsed or
processed by the caller, even if they weren't strings when handed to write(OutputStream, Dictionary).
Not recommended for use with complex objects such as arrays or maps. Where possible, use
.config and ConfigStrategy instead.
-
Field Summary
Fields inherited from interface org.codice.ddf.platform.io.internal.PersistenceStrategy
STRATEGY_EXTENSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread(InputStream in) voidwrite(OutputStream out, Dictionary<String, Object> inputDictionary)
-
Constructor Details
-
CfgStrategy
public CfgStrategy()
-
-
Method Details
-
getExtension
- Specified by:
getExtensionin interfaceorg.codice.ddf.platform.io.internal.PersistenceStrategy
-
write
- Specified by:
writein interfaceorg.codice.ddf.platform.io.internal.PersistenceStrategy- Throws:
IOException
-
read
- Specified by:
readin interfaceorg.codice.ddf.platform.io.internal.PersistenceStrategy- Throws:
IOException
-