Clears this provider so that it no longer contains the properties used to look up facilities implemented by the provider.
If a security manager is enabled, its checkSecurityAccess
method is called with the string "clearProviderProperties."+name
(where name
is the provider name) to see if it's ok to clear
this provider.
Attempts to compute a mapping for the specified key and its
current mapped value (or null
if there is no current
mapping).
If a security manager is enabled, its checkSecurityAccess
method is called with the strings "putProviderProperty."+name
and "removeProviderProperty."+name
, where name
is the
provider name, to see if it's ok to set this provider's property values
and remove this provider's properties.
key | key with which the specified value is to be associated | |
remappingFunction | the function to compute a value |
If the specified key is not already associated with a value (or
is mapped to null
), attempts to compute its value using
the given mapping function and enters it into this map unless
null
.
If a security manager is enabled, its checkSecurityAccess
method is called with the strings "putProviderProperty."+name
and "removeProviderProperty."+name
, where name
is the
provider name, to see if it's ok to set this provider's property values
and remove this provider's properties.
key | key with which the specified value is to be associated | |
mappingFunction | the function to compute a value |
If the value for the specified key is present and non-null, attempts to compute a new mapping given the key and its current mapped value.
If a security manager is enabled, its checkSecurityAccess
method is called with the strings "putProviderProperty."+name
and "removeProviderProperty."+name
, where name
is the
provider name, to see if it's ok to set this provider's property values
and remove this provider's properties.
key | key with which the specified value is to be associated | |
remappingFunction | the function to compute a value |
Returns an enumeration of the values in this hashtable. Use the Enumeration methods on the returned object to fetch the elements sequentially.
Returns an unmodifiable Set view of the property entries contained in this Provider.
java.util.Map.Entry
Performs the given action for each entry in this map until all entries have been processed or the action throws an exception. Unless otherwise specified by the implementing class, actions are performed in the order of entry set iteration (if an iteration order is specified.) Exceptions thrown by the action are relayed to the caller.
action | The action to be performed for each entry |
Returns the value to which the specified key is mapped,
or null
if this map contains no mapping for the key.
More formally, if this map contains a mapping from a key
k
to a value v
such that (key.equals(k))
,
then this method returns v
; otherwise it returns
null
. (There can be at most one such mapping.)
key | the key whose associated value is to be returned |
null
if this map contains no mapping for the key
Returns the value to which the specified key is mapped, or
defaultValue
if this map contains no mapping for the key.
key | the key whose associated value is to be returned | |
defaultValue | the default mapping of the key |
defaultValue
if this map contains no mapping for the key
Searches for the property with the specified key in this property list.
If the key is not found in this property list, the default property list,
and its defaults, recursively, are then checked. The method returns
null
if the property is not found.
key | the property key. |
Returns an unmodifiable Set view of the property keys contained in this provider.
Returns an enumeration of the keys in this hashtable.
Reads a property list (key and element pairs) from the input stream.
inStream | the input stream. |
IOException | if an error occurred when reading from the input stream. |
java.util.Properties.load
If the specified key is not already associated with a value or is associated with null, associates it with the given value. Otherwise, replaces the value with the results of the given remapping function, or removes if the result is null. This method may be of use when combining multiple mapped values for a key.
If a security manager is enabled, its checkSecurityAccess
method is called with the strings "putProviderProperty."+name
and "removeProviderProperty."+name
, where name
is the
provider name, to see if it's ok to set this provider's property values
and remove this provider's properties.
key | key with which the resulting value is to be associated | |
value | the non-null value to be merged with the existing value associated with the key or, if no existing value or a null value is associated with the key, to be associated with the key | |
remappingFunction | the function to recompute a value if present |
Sets the key
property to have the specified
value
.
If a security manager is enabled, its checkSecurityAccess
method is called with the string "putProviderProperty."+name
,
where name
is the provider name, to see if it's ok to set this
provider's property values.
key | the hashtable key | |
value | the value |
null
if it did not have one
Copies all of the mappings from the specified Map to this provider. These mappings will replace any properties that this provider had for any of the keys currently in the specified Map.
t | mappings to be stored in this map |
If the specified key is not already associated with a value (or is mapped
to null
) associates it with the given value and returns
null
, else returns the current value.
If a security manager is enabled, its checkSecurityAccess
method is called with the string "putProviderProperty."+name
,
where name
is the provider name, to see if it's ok to set this
provider's property values.
key | key with which the specified value is to be associated | |
value | value to be associated with the specified key |
null
if there was no mapping for the key.
(A null
return can also indicate that the map
previously associated null
with the key,
if the implementation supports null values.)
Removes the key
property (and its corresponding
value
).
If a security manager is enabled, its checkSecurityAccess
method is called with the string "removeProviderProperty."+name
,
where name
is the provider name, to see if it's ok to remove this
provider's properties.
key | the key that needs to be removed |
null
if the key did not have a mapping
Removes the entry for the specified key only if it is currently mapped to the specified value.
If a security manager is enabled, its checkSecurityAccess
method is called with the string "removeProviderProperty."+name
,
where name
is the provider name, to see if it's ok to remove this
provider's properties.
key | key with which the specified value is associated | |
value | value expected to be associated with the specified key |
true
if the value was removed
Replaces the entry for the specified key only if it is currently mapped to some value.
If a security manager is enabled, its checkSecurityAccess
method is called with the string "putProviderProperty."+name
,
where name
is the provider name, to see if it's ok to set this
provider's property values.
key | key with which the specified value is associated | |
value | value to be associated with the specified key |
null
if there was no mapping for the key.
(A null
return can also indicate that the map
previously associated null
with the key,
if the implementation supports null values.)
Replaces the entry for the specified key only if currently mapped to the specified value.
If a security manager is enabled, its checkSecurityAccess
method is called with the string "putProviderProperty."+name
,
where name
is the provider name, to see if it's ok to set this
provider's property values.
key | key with which the specified value is associated | |
oldValue | value expected to be associated with the specified key | |
newValue | value to be associated with the specified key |
true
if the value was replaced
Replaces each entry's value with the result of invoking the given function on that entry, in the order entries are returned by an entry set iterator, until all entries have been processed or the function throws an exception.
If a security manager is enabled, its checkSecurityAccess
method is called with the string "putProviderProperty."+name
,
where name
is the provider name, to see if it's ok to set this
provider's property values.
function | the function to apply to each entry |
Returns an unmodifiable Collection view of the property values contained in this provider.
Diagram: Security