Example usage for Java java.util Properties fields, constructors, methods, implement or subclass
The text is from its open source code.
Properties() Creates an empty property list with no default values. | |
Properties(int initialCapacity) Creates an empty property list with no default values, and with an initial size accommodating the specified number of elements without the need to dynamically resize. | |
Properties(Properties defaults) Creates an empty property list with the specified defaults. |
void | clear() |
Object | clone() |
boolean | contains(Object value) |
boolean | containsKey(Object key) |
boolean | containsValue(Object value) |
Enumeration | elements() |
Set | entrySet() |
boolean | equals(Object o) |
void | forEach(BiConsumer super Object, ? super Object> action) |
Object | get(Object key) |
Class> | getClass() Returns the runtime class of this Object . |
Object | getOrDefault(Object key, Object defaultValue) |
String | getProperty(String key) Searches for the property with the specified key in this property list. |
String | getProperty(String key, String defaultValue) Searches for the property with the specified key in this property list. |
int | hashCode() |
boolean | isEmpty() |
Enumeration | keys() |
Set | keySet() |
void | list(PrintStream out) Prints this property list out to the specified output stream. |
void | list(PrintWriter out) Prints this property list out to the specified output stream. |
void | load(Reader reader) Reads a property list (key and element pairs) from the input character stream in a simple line-oriented format. |
void | load(InputStream inStream) Reads a property list (key and element pairs) from the input byte stream. |
void | loadFromXML(InputStream in) Loads all of the properties represented by the XML document on the specified input stream into this properties table. |
Enumeration> | propertyNames() Returns an enumeration of all the keys in this property list, including distinct keys in the default property list if a key of the same name has not already been found from the main properties list. |
Object | put(Object key, Object value) |
void | putAll(Map, ?> t) |
Object | putIfAbsent(Object key, Object value) |
Object | remove(Object key) |
boolean | remove(Object key, Object value) |
Object | replace(Object key, Object value) |
void | replaceAll(BiFunction super Object, ? super Object, ?> function) |
void | save(OutputStream out, String comments) Calls the store(OutputStream out, String comments) method and suppresses IOExceptions that were thrown. |
Object | setProperty(String key, String value) Calls the Hashtable method put . |
int | size() |
void | store(Writer writer, String comments) Writes this property list (key and element pairs) in this Properties table to the output character stream in a format suitable for using the #load(java.io.Reader) load(Reader) method. |
void | store(OutputStream out, String comments) Writes this property list (key and element pairs) in this Properties table to the output stream in a format suitable for loading into a Properties table using the #load(InputStream) load(InputStream) method. |
void | storeToXML(OutputStream os, String comment) Emits an XML document representing all of the properties contained in this table. |
void | storeToXML(OutputStream os, String comment, String encoding) Emits an XML document representing all of the properties contained in this table, using the specified encoding. |
void | storeToXML(OutputStream os, String comment, Charset charset) Emits an XML document representing all of the properties contained in this table, using the specified encoding. |
Set | stringPropertyNames() Returns an unmodifiable set of keys from this property list where the key and its corresponding value are strings, including distinct keys in the default property list if a key of the same name has not already been found from the main properties list. |
String | toString() |
Collection | values() |