public class ConfigurationProperties extends Object
Modifier and Type | Field and Description |
---|---|
protected Properties |
prop |
Constructor and Description |
---|
ConfigurationProperties() |
ConfigurationProperties(Properties prop) |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(String key,
Object object) |
void |
clear() |
void |
clearProperty(String key) |
boolean |
containsKey(String key) |
boolean |
getBoolean(String key) |
boolean |
getBoolean(String key,
boolean defaultValue) |
Double |
getDouble(String key,
double defaultValue) |
File |
getFile() |
Float |
getFloat(String key,
float defaultValue) |
int |
getInt(String key,
int i) |
Integer |
getInteger(String key) |
Integer |
getInteger(String key,
Integer defaultValue) |
Iterator |
getKeys() |
long |
getLong(String key,
long i) |
Properties |
getProperties() |
String |
getProperty(String key) |
String |
getString(String key) |
String |
getString(String key,
String defaultValue) |
boolean |
isEmpty() |
void |
load() |
void |
load(File file) |
void |
load(InputStream in) |
void |
load(Reader reader) |
void |
save() |
void |
save(OutputStream outputStream) |
void |
setEncoding(String cHARACTER_ENCODING) |
void |
setFile(File dataFile) |
void |
setProperty(String key,
boolean adminManagement) |
void |
setProperty(String key,
int value) |
void |
setProperty(String key,
Object value) |
void |
setProperty(String key,
String value) |
protected Properties prop
public ConfigurationProperties()
public ConfigurationProperties(Properties prop)
public void load(File file) throws IOException
IOException
public File getFile()
public Iterator getKeys()
public void clear()
public Properties getProperties()
public int getInt(String key, int i)
public void setProperty(String key, int value)
public long getLong(String key, long i)
public boolean getBoolean(String key, boolean defaultValue)
public void save(OutputStream outputStream) throws IOException
IOException
public void setProperty(String key, boolean adminManagement)
public void clearProperty(String key)
public boolean containsKey(String key)
public boolean isEmpty()
public void setFile(File dataFile) throws IOException
IOException
public void save() throws IOException
IOException
public void load(InputStream in) throws IOException
IOException
public void setEncoding(String cHARACTER_ENCODING)
public void load(Reader reader) throws IOException
IOException
public boolean getBoolean(String key)
public void load() throws IOException
IOException
Copyright © 2012-2018. All Rights Reserved.