public class InputStreamPropertyIO extends AbstractPropertyIO
Properties.load() method. setValue throws an exception. InputStream,
Properties.load(InputStream),
Serialized Form| Constructor and Description |
|---|
InputStreamPropertyIO(InputStream inputStream) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCacheTime()
How often the typed value cache for a PropertyIO should be automatically flushed every X milliseconds.
|
protected InputStream |
getInputStream() |
String |
getName()
A short descriptive name of the Property IO.
|
Properties |
getProperties()
Gets all the name,value pair in a Properties class instance.
|
String |
getSource()
A detailed description of the source of the property data.
|
void |
reload()
Reloads the name,value pairs for the PropertyIO, or forces the values to reload when read next time.
|
void |
setValue(String propertyName,
String value)
Sets the name,value as String in the IO.
|
void |
validate()
Validates the PropertyIO.
|
backup, getLastLoaded, getLastSaved, getLogger, getTypedProperties, getTypedValue, getValue, isCached, isReadonly, logPerformanceGetProperties, logPerformanceSetValue, setCacheTime, storeTypedValue, updateLastLoaded, updateLastSaved, validateWritablepublic InputStreamPropertyIO(InputStream inputStream)
protected final InputStream getInputStream()
public void setValue(String propertyName, String value) throws PropertyIOException
PropertyIOpropertyName - the name of the propertyvalue - the string value of the property.PropertyIOException - if the IO is readonly or failed to write the value.public void validate()
throws PropertyIOException
PropertyIOPropertyIOExceptionpublic Properties getProperties()
PropertyIOPropertiespublic void reload()
PropertyIOreload in interface PropertyIOreload in class AbstractPropertyIOpublic String getSource()
PropertyIOpublic String getName()
PropertyIOpublic final long getCacheTime()
AbstractPropertyIOgetCacheTime in interface PropertyIOgetCacheTime in class AbstractPropertyIOPropertyIO.reload()