Class PropertyFileManager
java.lang.Object
it.uniroma2.art.semanticturkey.resources.PropertyFileManager
- Direct Known Subclasses:
InstallConfigFile
Generic PropertyFile Manager. This includes:
- Author:
- Armando Stellato
-
Constructor Summary
ConstructorDescriptionPropertyFileManager
(File file) loads a property file.PropertyFileManager
(File file, String comment) PropertyFileManager
(String filePath) as forPropertyFileManager(File)
with thefilePath
converted to a filePropertyFileManager
(String filePath, String comment) as forPropertyFileManager(File, String)
with thefilePath
converted to a file -
Method Summary
Modifier and TypeMethodDescriptiongetPropertyValue
(String propName) void
setPropertyValue
(String propName, String propValue) protected void
-
Constructor Details
-
PropertyFileManager
public PropertyFileManager(String filePath, String comment) throws FileNotFoundException, IOException as forPropertyFileManager(File, String)
with thefilePath
converted to a file- Parameters:
filePath
-comment
-- Throws:
FileNotFoundException
IOException
-
PropertyFileManager
as forPropertyFileManager(File)
with thefilePath
converted to a file- Parameters:
filePath
-- Throws:
FileNotFoundException
IOException
-
PropertyFileManager
loads a property file. Comments will be preserved on subsequent stores, though the order of these comments is not guaranteed (so useful only for opening remarks and not for "per-property" comments- Parameters:
file
-- Throws:
FileNotFoundException
IOException
-
PropertyFileManager
- Throws:
FileNotFoundException
IOException
-
-
Method Details
-
updatePropertyFile
- Throws:
ConfigurationUpdateException
-
getPropertyValue
-
setPropertyValue
- Throws:
ConfigurationUpdateException
-