Maven module :un.api : api-encoding :
Class : un.store.keyvalue.KeyValueStore
Extends/Implements : -
Subclasses : -

Store key value pairs in plain text with pattern :
key1=value1
key2=value2
author  Johann Sorel


Variables : -
Functions : KeyValueStore, KeyValueStore, KeyValueStore, getProperty, setProperty, save, save, save, load, load, load



public void KeyValueStore ()


Store from path with default encoding (UTF-8).
param  path
public void KeyValueStore (Path path)

public void KeyValueStore (Path path, CharEncoding encoding)

public Chars getProperty (Chars name)


param  name property name
param  value property value
public void setProperty (Chars name, Chars value)


Write properties on the original path.
return  this store
throws  un.api.io.IOException
public KeyValueStore save ()


Write properties on the given path.
param  path
return  this store
throws  un.api.io.IOException
public KeyValueStore save (Path path)


Write properties in given stream.
param  stream output stream
return  this store
throws  un.api.io.IOException
public KeyValueStore save (ByteOutputStream stream)


Load properties from original path.
return  this store
throws  un.api.io.IOException
public KeyValueStore load ()


Load properties from given path.
param  path
return  this store
throws  un.api.io.IOException
public KeyValueStore load (Path path)


Load properties from given stream.
param  stream output stream
return  this store
throws  un.api.io.IOException
public KeyValueStore load (ByteInputStream stream)