public class PropertyFileHandlerImpl extends Object implements PropertyFileHandler
| Constructor and Description |
|---|
PropertyFileHandlerImpl(File file) |
PropertyFileHandlerImpl(String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete() |
void |
delete(String m) |
boolean |
exists() |
String |
get(String m) |
Properties |
getAll() |
protected Properties |
getCache() |
File |
getFile(boolean create) |
String |
getPath() |
protected Properties |
load() |
protected void |
save(Properties p) |
void |
save(String m,
String value) |
void |
saveAll(Properties properties) |
protected void |
setCache(Properties p) |
public PropertyFileHandlerImpl(String name)
public PropertyFileHandlerImpl(File file)
protected Properties load() throws IOException
IOExceptionprotected void save(Properties p) throws IOException
IOExceptionpublic void save(String m, String value) throws ConfigurationError
save in interface PropertyFileHandlerConfigurationErrorprotected void setCache(Properties p)
protected Properties getCache()
public File getFile(boolean create) throws IOException
getFile in interface PropertyFileHandlerIOExceptionpublic String get(String m) throws ConfigurationError
get in interface PropertyFileHandlerConfigurationErrorpublic void delete(String m) throws ConfigurationError
delete in interface PropertyFileHandlerConfigurationErrorpublic boolean delete()
delete in interface PropertyFileHandlerpublic void saveAll(Properties properties) throws ConfigurationError
saveAll in interface PropertyFileHandlerConfigurationErrorpublic Properties getAll() throws ConfigurationError
getAll in interface PropertyFileHandlerConfigurationErrorpublic String getPath()
getPath in interface PropertyFileHandlerpublic boolean exists()
exists in interface PropertyFileHandlerCopyright © 2015–2020 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.