Package org.n52.iceland.util
Class PropertyFileHandlerImpl
- java.lang.Object
-
- org.n52.iceland.util.PropertyFileHandlerImpl
-
- All Implemented Interfaces:
PropertyFileHandler
- Direct Known Subclasses:
ServletContextPropertyFileHandler
public class PropertyFileHandlerImpl extends Object implements PropertyFileHandler
TODO JavaDoc
-
-
Constructor Summary
Constructors Constructor Description PropertyFileHandlerImpl(File file)PropertyFileHandlerImpl(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandelete()voiddelete(String m)booleanexists()Stringget(String m)PropertiesgetAll()protected PropertiesgetCache()FilegetFile(boolean create)StringgetPath()protected Propertiesload()voidsave(String m, String value)protected voidsave(Properties p)voidsaveAll(Properties properties)protected voidsetCache(Properties p)
-
-
-
Method Detail
-
load
protected Properties load() throws IOException
- Throws:
IOException
-
save
protected void save(Properties p) throws IOException
- Throws:
IOException
-
save
public void save(String m, String value) throws ConfigurationError
- Specified by:
savein interfacePropertyFileHandler- Throws:
ConfigurationError
-
setCache
protected void setCache(Properties p)
-
getCache
protected Properties getCache()
-
getFile
public File getFile(boolean create) throws IOException
- Specified by:
getFilein interfacePropertyFileHandler- Throws:
IOException
-
get
public String get(String m) throws ConfigurationError
- Specified by:
getin interfacePropertyFileHandler- Throws:
ConfigurationError
-
delete
public void delete(String m) throws ConfigurationError
- Specified by:
deletein interfacePropertyFileHandler- Throws:
ConfigurationError
-
delete
public boolean delete()
- Specified by:
deletein interfacePropertyFileHandler
-
saveAll
public void saveAll(Properties properties) throws ConfigurationError
- Specified by:
saveAllin interfacePropertyFileHandler- Throws:
ConfigurationError
-
getAll
public Properties getAll() throws ConfigurationError
- Specified by:
getAllin interfacePropertyFileHandler- Throws:
ConfigurationError
-
getPath
public String getPath()
- Specified by:
getPathin interfacePropertyFileHandler
-
exists
public boolean exists()
- Specified by:
existsin interfacePropertyFileHandler
-
-