@Immutable public class UnmodifiableProperties extends Properties
Properties implementation.defaults| Constructor and Description |
|---|
UnmodifiableProperties(Properties props) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
Object |
clone() |
boolean |
contains(Object value) |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Enumeration<Object> |
elements() |
Set<Map.Entry<Object,Object>> |
entrySet() |
boolean |
equals(Object o) |
Object |
get(Object key) |
String |
getProperty(String key) |
String |
getProperty(String key,
String defaultValue) |
int |
hashCode() |
boolean |
isEmpty() |
Enumeration<Object> |
keys() |
Set<Object> |
keySet() |
void |
list(PrintStream out) |
void |
list(PrintWriter out) |
void |
load(InputStream inStream) |
void |
loadFromXML(InputStream in) |
Enumeration<?> |
propertyNames() |
Object |
put(Object key,
Object value) |
void |
putAll(Map<? extends Object,? extends Object> t) |
Object |
remove(Object key) |
void |
save(OutputStream out,
String comments)
Deprecated.
This method does not throw an IOException if an I/O error occurs while saving the property list. The preferred
way to save a properties list is via the
store(OutputStream out,
String comments) method or the storeToXML(OutputStream os, String comment) method. |
Object |
setProperty(String key,
String value) |
int |
size() |
void |
store(OutputStream out,
String comments) |
void |
storeToXML(OutputStream os,
String comment) |
void |
storeToXML(OutputStream os,
String comment,
String encoding) |
String |
toString() |
Collection<Object> |
values() |
load, store, stringPropertyNamespublic UnmodifiableProperties(Properties props)
public boolean contains(Object value)
public boolean containsKey(Object key)
containsKey in interface Map<Object,Object>containsKey in class Hashtable<Object,Object>public boolean containsValue(Object value)
containsValue in interface Map<Object,Object>containsValue in class Hashtable<Object,Object>public Enumeration<Object> elements()
public boolean equals(Object o)
public String getProperty(String key, String defaultValue)
getProperty in class Propertiespublic String getProperty(String key)
getProperty in class Propertiespublic int hashCode()
public boolean isEmpty()
public void list(PrintStream out)
list in class Propertiespublic void list(PrintWriter out)
list in class Propertiespublic Enumeration<?> propertyNames()
propertyNames in class Properties@Deprecated public void save(OutputStream out, String comments)
store(OutputStream out,
String comments) method or the storeToXML(OutputStream os, String comment) method.save in class PropertiesProperties.save(java.io.OutputStream, java.lang.String)public int size()
public void store(OutputStream out, String comments) throws IOException
store in class PropertiesIOExceptionpublic void storeToXML(OutputStream os, String comment, String encoding) throws IOException
storeToXML in class PropertiesIOExceptionpublic void storeToXML(OutputStream os, String comment) throws IOException
storeToXML in class PropertiesIOExceptionpublic Collection<Object> values()
public void clear()
public void load(InputStream inStream)
load in class Propertiespublic void loadFromXML(InputStream in)
loadFromXML in class Propertiespublic Object setProperty(String key, String value)
setProperty in class PropertiesCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.