Java java.util Properties fields, constructors, methods, implement or subclass

Example usage for Java java.util Properties fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util Properties.

The text is from its open source code.

Subclass

java.util.Properties has subclasses.
Click this link to see all its subclasses.

Implementation

java.util.Properties has the following implementations.
Click this link to see all its implementation.

Constructor

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.

Method

voidclear()
Objectclone()
booleancontains(Object value)
booleancontainsKey(Object key)
booleancontainsValue(Object value)
Enumerationelements()
Set>entrySet()
booleanequals(Object o)
voidforEach(BiConsumer action)
Objectget(Object key)
ClassgetClass()
Returns the runtime class of this Object .
ObjectgetOrDefault(Object key, Object defaultValue)
StringgetProperty(String key)
Searches for the property with the specified key in this property list.
StringgetProperty(String key, String defaultValue)
Searches for the property with the specified key in this property list.
inthashCode()
booleanisEmpty()
Enumerationkeys()
SetkeySet()
voidlist(PrintStream out)
Prints this property list out to the specified output stream.
voidlist(PrintWriter out)
Prints this property list out to the specified output stream.
voidload(Reader reader)
Reads a property list (key and element pairs) from the input character stream in a simple line-oriented format.
voidload(InputStream inStream)
Reads a property list (key and element pairs) from the input byte stream.
voidloadFromXML(InputStream in)
Loads all of the properties represented by the XML document on the specified input stream into this properties table.
EnumerationpropertyNames()
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.
Objectput(Object key, Object value)
voidputAll(Map t)
ObjectputIfAbsent(Object key, Object value)
Objectremove(Object key)
booleanremove(Object key, Object value)
Objectreplace(Object key, Object value)
voidreplaceAll(BiFunction function)
voidsave(OutputStream out, String comments)
Calls the store(OutputStream out, String comments) method and suppresses IOExceptions that were thrown.
ObjectsetProperty(String key, String value)
Calls the Hashtable method put .
intsize()
voidstore(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.
voidstore(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.
voidstoreToXML(OutputStream os, String comment)
Emits an XML document representing all of the properties contained in this table.
voidstoreToXML(OutputStream os, String comment, String encoding)
Emits an XML document representing all of the properties contained in this table, using the specified encoding.
voidstoreToXML(OutputStream os, String comment, Charset charset)
Emits an XML document representing all of the properties contained in this table, using the specified encoding.
SetstringPropertyNames()
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.
StringtoString()
Collectionvalues()