org.omnaest.utils.propertyfile
Class PropertyFile
java.lang.Object
org.omnaest.utils.propertyfile.PropertyFile
public class PropertyFile
- extends Object
Representation of a property file. Offers methods to load, modify and store property files.
This API supports minimal invasive modification which means that existing comments or blank lines are not discarded.
- Author:
- Omnaest
- See Also:
load(),
store(),
PropertyFileContent
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FILE_ENCODING_DEFAULT
public static final String FILE_ENCODING_DEFAULT
- See Also:
- Constant Field Values
file
protected File file
fileEncoding
protected String fileEncoding
propertyFileContent
protected PropertyFileContent propertyFileContent
PropertyFile
public PropertyFile(String propertyFileName)
PropertyFile
public PropertyFile(File propertyFile)
load
public void load()
- Loads the
PropertyFile from disc.
store
public void store()
- Stores the
PropertyFile to disc.
getFile
public File getFile()
setFile
public void setFile(File file)
getPropertyFileContent
public PropertyFileContent getPropertyFileContent()
setPropertyFileContent
public void setPropertyFileContent(PropertyFileContent propertyFileContent)
getFileEncoding
public String getFileEncoding()
setFileEncoding
public void setFileEncoding(String fileEncoding)
Copyright © 2011. All Rights Reserved.