Package cronapi.osjava.sj.loader.util
Class AbstractProperties
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<Object,Object>
-
- java.util.Properties
-
- cronapi.osjava.sj.loader.util.AbstractProperties
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<Object,Object>
- Direct Known Subclasses:
CustomProperties,IniProperties,XmlProperties
public abstract class AbstractProperties extends Properties
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ArrayListindex-
Fields inherited from class java.util.Properties
defaults
-
-
Constructor Summary
Constructors Constructor Description AbstractProperties()AbstractProperties(Properties props)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetDelimiter()Enumerationkeys()SetkeySet()abstract voidload(InputStream in)EnumerationpropertyNames()Objectput(Object key, Object value)Objectremove(Object key)voidsave(OutputStream outstrm, String header)Currently will write out defaults as well, which is not in the specification.voidsetDelimiter(String delimiter)ObjectsetProperty(String key, String value)voidstore(OutputStream outstrm, String header)Currently will write out defaults as well, which is not in the specification.-
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, list, list, load, loadFromXML, merge, putAll, putIfAbsent, rehash, remove, replace, replace, replaceAll, size, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
-
-
-
Field Detail
-
index
protected ArrayList index
-
-
Constructor Detail
-
AbstractProperties
public AbstractProperties()
-
AbstractProperties
public AbstractProperties(Properties props)
-
-
Method Detail
-
load
public abstract void load(InputStream in) throws IOException
- Overrides:
loadin classProperties- Throws:
IOException
-
setDelimiter
public void setDelimiter(String delimiter)
-
getDelimiter
public String getDelimiter()
-
setProperty
public Object setProperty(String key, String value)
- Overrides:
setPropertyin classProperties
-
propertyNames
public Enumeration propertyNames()
- Overrides:
propertyNamesin classProperties
-
keys
public Enumeration keys()
- Overrides:
keysin classProperties
-
keySet
public Set keySet()
-
save
public void save(OutputStream outstrm, String header)
Currently will write out defaults as well, which is not in the specification.- Overrides:
savein classProperties
-
store
public void store(OutputStream outstrm, String header) throws IOException
Currently will write out defaults as well, which is not in the specification.- Overrides:
storein classProperties- Throws:
IOException
-
-