Properties (Java SE 25 & JDK 25)
- All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>
- Direct Known Subclasses:
Provider
-
Field Summary
Fields
A property list that contains default values for any keys not found in this property list.
-
Constructor Summary
Constructors
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.
Creates an empty property list with the specified defaults.
-
Method Summary
Searches for the property with the specified key in this property list.
Searches for the property with the specified key in this property list.
voidPrints this property list out to the specified output stream.
voidPrints this property list out to the specified output stream.
voidReads a property list (key and element pairs) from the input byte stream.
voidReads a property list (key and element pairs) from the input character stream in a simple line-oriented format.
voidLoads all of the properties represented by the XML document on the specified input stream into this properties table.
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.
voidCalls the
Hashtablemethodput.voidWrites this property list (key and element pairs) in this
Propertiestable to the output stream in a format suitable for loading into aPropertiestable using theload(InputStream)method.voidWrites this property list (key and element pairs) in this
Propertiestable to the output character stream in a format suitable for using theload(Reader)method.voidEmits an XML document representing all of the properties contained in this table.
voidEmits an XML document representing all of the properties contained in this table, using the specified encoding.
voidEmits an XML document representing all of the properties contained in this table, using the specified encoding.
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.
-
Field Details
-
defaults
-
-
Constructor Details
-
Properties
-
Properties
-
Properties
-
-
Method Details
-
setProperty
-
load
-
load
-
save
-
store
-
store
-
loadFromXML
-
storeToXML
-
storeToXML
-
storeToXML
-
getProperty
-
getProperty
-
propertyNames
-
stringPropertyNames
-
list
-
list
-