|
Humboldt Alignment Editor 2.5.0 | |||||||||
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<Object,Object>
java.util.Properties
eu.esdihumboldt.util.PropertiesFile
public class PropertiesFile
Properties bound to a file. The file is assumed to use the ISO 8859-1 character encoding; that is each byte is one Latin1 character. Characters not in Latin1, and certain special characters, are represented in keys and elements using Unicode escapes.
Field Summary |
---|
Fields inherited from class java.util.Properties |
---|
defaults |
Constructor Summary | |
---|---|
PropertiesFile(File file)
Create or load the given properties file. |
|
PropertiesFile(File file,
Properties defaults)
Create or load the given properties file. |
Method Summary | |
---|---|
void |
reload()
Reload the properties from the file. |
void |
save()
Save the properties to the file, overwriting it. |
void |
sync(boolean preferRuntime)
Sync the properties with the file. |
Methods inherited from class java.util.Properties |
---|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, 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 PropertiesFile(File file) throws IOException
file
- the properties file
IOException
- if creating or loading the file failspublic PropertiesFile(File file, Properties defaults) throws IOException
file
- the properties filedefaults
- the default properties
IOException
- if creating or loading the file failsMethod Detail |
---|
public void reload() throws IOException
IOException
- if loading the file failspublic void save() throws IOException
IOException
- if saving the file failspublic void sync(boolean preferRuntime) throws IOException
preferRuntime
- if the runtime properties should be preferred
IOException
- if loading or saving the file fails
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |