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.

  • Constructor Details

    • CfgStrategy

      public CfgStrategy()
  • Method Details