public class Properties
extends java.util.HashMap<java.lang.String,java.lang.String>
Constructor and Description |
---|
Properties() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
get(java.lang.String key,
java.lang.String defaultValue) |
boolean |
getBoolean(java.lang.String key) |
boolean |
getBoolean(java.lang.String key,
boolean defval) |
java.lang.Object |
getClassInstance(java.lang.String key) |
java.lang.Object |
getClassInstance(java.lang.String key,
java.lang.Object defaultinstance) |
double |
getDouble(java.lang.String key) |
double |
getDouble(java.lang.String key,
long defval) |
float |
getFloat(java.lang.String key) |
float |
getFloat(java.lang.String key,
float defval) |
int |
getInt(java.lang.String key) |
int |
getInt(java.lang.String key,
int defval) |
long |
getLong(java.lang.String key) |
long |
getLong(java.lang.String key,
long defval) |
java.net.URL |
getURL(java.lang.String key) |
void |
load(java.io.InputStream is) |
void |
load(java.io.InputStream is,
java.lang.String encoding) |
void |
setDouble(java.lang.String key,
double val) |
void |
setFloat(java.lang.String key,
float val) |
void |
setInt(java.lang.String key,
int val) |
void |
setLong(java.lang.String key,
long val) |
void |
store(java.io.OutputStream out) |
void |
store(java.io.OutputStream out,
java.lang.String encoding) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public void load(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public void load(java.io.InputStream is, java.lang.String encoding) throws java.io.IOException
java.io.IOException
public java.lang.String get(java.lang.String key, java.lang.String defaultValue)
public void store(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public void store(java.io.OutputStream out, java.lang.String encoding) throws java.io.IOException
java.io.IOException
public boolean getBoolean(java.lang.String key) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public boolean getBoolean(java.lang.String key, boolean defval)
public java.lang.Object getClassInstance(java.lang.String key) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.lang.Object getClassInstance(java.lang.String key, java.lang.Object defaultinstance) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public double getDouble(java.lang.String key) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public double getDouble(java.lang.String key, long defval) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void setDouble(java.lang.String key, double val)
public float getFloat(java.lang.String key) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public float getFloat(java.lang.String key, float defval) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void setFloat(java.lang.String key, float val)
public int getInt(java.lang.String key) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public int getInt(java.lang.String key, int defval) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void setInt(java.lang.String key, int val)
public long getLong(java.lang.String key) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public long getLong(java.lang.String key, long defval) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void setLong(java.lang.String key, long val)
public java.net.URL getURL(java.lang.String key) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly