|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
com.gridsystems.utils.FileProperties
com.gridsystems.utils.SecureFileProperties
com.gridsystems.utils.SortedFileProperties
public class SortedFileProperties
This class implements a SecureProperties object linked to a File object. Changes in the file will be automatically updated, and changes in the object will produce changes in the file.
Field Summary |
---|
Fields inherited from class com.gridsystems.utils.FileProperties |
---|
f, header, lastModified, lockWrite, synchronize, ts |
Fields inherited from class java.util.Properties |
---|
defaults |
Constructor Summary | |
---|---|
SortedFileProperties(java.io.File f)
Creates a new instance. |
|
SortedFileProperties(java.io.File f,
java.util.Properties defaults)
Creates a new instance. |
Method Summary | |
---|---|
void |
commit()
Propagates changes in memory to the file associated with this object. |
void |
store(java.io.OutputStream out,
java.lang.String header)
|
Methods inherited from class com.gridsystems.utils.SecureFileProperties |
---|
load |
Methods inherited from class com.gridsystems.utils.FileProperties |
---|
getBoolProperty, getIntProperty, getIntProperty, getLongProperty, getLongProperty, getProperty, getProperty, lockWrites, propertyNames, setFile, setHeader, setProperty, sync, unlockWrites |
Methods inherited from class java.util.Properties |
---|
list, list, load, loadFromXML, save, store, storeToXML, storeToXML, stringPropertyNames |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SortedFileProperties(java.io.File f, java.util.Properties defaults)
f
- The file to link this instance todefaults
- The default valuespublic SortedFileProperties(java.io.File f)
f
- The file to link this instance toMethod Detail |
---|
public void commit()
commit
in class SecureFileProperties
public void store(java.io.OutputStream out, java.lang.String header) throws java.io.IOException
store
in class java.util.Properties
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |