public class XMLParsedFilePropertyIO extends AbstractXMLFilePropertyIO
XMLPropertiesParser,
Serialized Form| Constructor and Description |
|---|
XMLParsedFilePropertyIO(File file,
XMLPropertiesParser parser)
Constructor, where readonly is
false and cache is true. |
XMLParsedFilePropertyIO(File file,
XMLPropertiesParser parser,
boolean readonly)
Constructor, where cache is
true. |
XMLParsedFilePropertyIO(File file,
XMLPropertiesParser parser,
boolean readonly,
boolean cached)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
XMLPropertiesParser |
getParser()
Gets the XMLPropertiesParser
|
protected Properties |
loadXml(File file)
Loads the XML file properties usung the XMLPropertiesParser
|
protected void |
saveXml(Properties properties,
File file)
Updates the XML file properties and saves the file.
|
getProperties, reload, setValue, validategetFile, getName, getSourcebackup, getCacheTime, getLastLoaded, getLastSaved, getLogger, getTypedProperties, getTypedValue, getValue, isCached, isReadonly, logPerformanceGetProperties, logPerformanceSetValue, setCacheTime, storeTypedValue, updateLastLoaded, updateLastSaved, validateWritablepublic XMLParsedFilePropertyIO(File file, XMLPropertiesParser parser) throws NullPointerException
false and cache is true.file - the xml file.parser - the instance of XMLPropertiesParser.NullPointerException - if either file or parser is null.public XMLParsedFilePropertyIO(File file, XMLPropertiesParser parser, boolean readonly) throws NullPointerException
true.file - the xml file.parser - the instance of XMLPropertiesParser.readonly - if the properties in this instance is readonly.NullPointerException - if either file or parser is null.public XMLParsedFilePropertyIO(File file, XMLPropertiesParser parser, boolean readonly, boolean cached) throws NullPointerException
file - the xml file.parser - the instance of XMLPropertiesParser.readonly - if the properties in this instance is readonly.cached - if the typed converted values is stored in a cache.NullPointerException - if either file or parser is null.public XMLPropertiesParser getParser()
protected Properties loadXml(File file) throws PropertyIOException
loadXml in class AbstractXMLFilePropertyIOfile - the XML filePropertyIOException - if any failure loading the properties.XMLUtils.loadXmlFromFile(File)protected final void saveXml(Properties properties, File file) throws PropertyIOException
saveXml in class AbstractXMLFilePropertyIOproperties - the Properties to be saved.file - the file to save to.PropertyIOException - if either problems saving, or saving is not possible.