public class PropertiesPlus extends java.util.Properties implements Properties
java.util.Properties Plus
Properties.CharsetComment, Properties.Comment, Properties.Part, Properties.Property| 限定符和类型 | 字段和说明 |
|---|---|
protected org.slf4j.Logger |
logger |
| 构造器和说明 |
|---|
PropertiesPlus()
Creates an empty property list with no default values.
|
PropertiesPlus(java.nio.charset.Charset charset)
Creates an empty property list with no default values.
|
PropertiesPlus(Properties defaults)
Creates an empty property list with the specified defaults.
|
PropertiesPlus(java.util.Properties defaults,
java.nio.charset.Charset charset)
Creates an empty property list with the specified defaults.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.nio.charset.Charset |
getCharset() |
java.lang.String |
getProperty(java.lang.String key) |
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue) |
java.util.Collection<java.lang.String> |
getPropertyNames() |
Properties.Property |
getPropertyPart(java.lang.String key) |
java.util.Collection<Properties.Property> |
getPropertyParts() |
java.util.Collection<Properties.Part> |
listAll() |
void |
load(java.io.InputStream is) |
void |
load(java.io.Reader reader) |
Properties.Property |
setProperty(Properties.Property property) |
java.lang.String |
setProperty(java.lang.String key,
java.lang.String value) |
java.lang.String |
setProperty(java.lang.String key,
java.lang.String value,
java.lang.String comment) |
void |
store(java.io.OutputStream out) |
void |
store(java.io.OutputStream out,
java.lang.String comment) |
void |
store(java.io.Writer writer,
java.lang.String comment) |
java.util.Properties |
toJdkProperties() |
list, list, loadFromXML, propertyNames, save, storeToXML, storeToXML, stringPropertyNamesclear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, valuespublic PropertiesPlus()
public PropertiesPlus(Properties defaults)
defaults - the defaults.public PropertiesPlus(java.util.Properties defaults,
java.nio.charset.Charset charset)
defaults - the defaults.charset - charset.public PropertiesPlus(java.nio.charset.Charset charset)
charset - charsetpublic java.lang.String setProperty(java.lang.String key,
java.lang.String value)
setProperty 在接口中 PropertiessetProperty 在类中 java.util.Propertiespublic java.lang.String setProperty(java.lang.String key,
java.lang.String value,
java.lang.String comment)
setProperty 在接口中 Propertiespublic Properties.Property setProperty(Properties.Property property)
setProperty 在接口中 Propertiespublic java.lang.String getProperty(java.lang.String key)
getProperty 在接口中 PropertiesgetProperty 在类中 java.util.Propertiespublic java.lang.String getProperty(java.lang.String key,
java.lang.String defaultValue)
getProperty 在接口中 PropertiesgetProperty 在类中 java.util.Propertiespublic Properties.Property getPropertyPart(java.lang.String key)
getPropertyPart 在接口中 Propertiespublic java.util.Collection<Properties.Property> getPropertyParts()
getPropertyParts 在接口中 Propertiespublic java.util.Collection<java.lang.String> getPropertyNames()
getPropertyNames 在接口中 Propertiespublic java.util.Collection<Properties.Part> listAll()
listAll 在接口中 Propertiespublic java.nio.charset.Charset getCharset()
getCharset 在接口中 Propertiespublic java.util.Properties toJdkProperties()
toJdkProperties 在接口中 Propertiespublic void store(java.io.OutputStream out)
throws java.io.IOException
store 在接口中 Propertiesjava.io.IOExceptionpublic void store(java.io.OutputStream out,
java.lang.String comment)
throws java.io.IOException
store 在类中 java.util.Propertiesjava.io.IOExceptionpublic void store(java.io.Writer writer,
java.lang.String comment)
throws java.io.IOException
store 在类中 java.util.Propertiesjava.io.IOExceptionpublic void load(java.io.InputStream is)
throws java.io.IOException
load 在接口中 Propertiesload 在类中 java.util.Propertiesjava.io.IOExceptionpublic void load(java.io.Reader reader)
throws java.io.IOException
load 在类中 java.util.Propertiesjava.io.IOException