Package org.teavm.classlib.java.util
Class TProperties
java.lang.Object
- All Implemented Interfaces:
TSerializable,TCloneable,TMap<Object,Object>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TPropertiesThe default values for keys not found in thisPropertiesinstance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProperty(String name) getProperty(String name, String defaultValue) voidlist(TPrintStream out) voidload(TInputStream in) voidLoads key-value pairs from the specifiedTReader.TEnumeration<?> voidsave(OutputStream out, String comment) Deprecated.setProperty(String name, String value) voidstore(OutputStream out, String comments) Methods inherited from class org.teavm.classlib.java.util.THashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, valuesMethods inherited from class org.teavm.classlib.java.lang.TObject
equals0, finalize, getClass0, notify0, notifyAll0, wait0, wait0Methods inherited from interface org.teavm.classlib.java.util.TMap
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
defaults
The default values for keys not found in thisPropertiesinstance.
-
-
Constructor Details
-
TProperties
public TProperties() -
TProperties
-
-
Method Details
-
getProperty
-
getProperty
-
list
-
load
- Throws:
IOException
-
load
Loads key-value pairs from the specifiedTReader. This method wraps the reader in aTProperties.MyReaderand delegates to the internalload(StreamOrReader)method.- Parameters:
reader- theTReaderto read from- Throws:
IOException- if an I/O error occursNullPointerException- ifreaderisnull
-
propertyNames
-
save
Deprecated. -
setProperty
-
store
- Throws:
IOException
-
stringPropertyNames
-