public class PropertiesImpl
extends java.lang.Object
implements cn.featherfly.common.io.Properties
| 构造器和说明 |
|---|
PropertiesImpl()
Creates an empty property list with no default values.
|
PropertiesImpl(java.nio.charset.Charset charset)
Creates an empty property list with no default values.
|
PropertiesImpl(cn.featherfly.common.io.Properties defaults)
Creates an empty property list with the specified defaults.
|
PropertiesImpl(java.util.Properties properties)
Creates an empty property list with no default values.
|
PropertiesImpl(java.util.Properties properties,
java.nio.charset.Charset charset)
Creates an empty property list with no default values.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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() |
cn.featherfly.common.io.Properties.Property |
getPropertyPart(java.lang.String key) |
java.util.Collection<cn.featherfly.common.io.Properties.Property> |
getPropertyParts() |
java.util.Collection<cn.featherfly.common.io.Properties.Part> |
listAll() |
void |
load(java.io.InputStream is) |
cn.featherfly.common.io.Properties.Property |
setProperty(cn.featherfly.common.io.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) |
java.util.Properties |
toJdkProperties() |
public PropertiesImpl()
public PropertiesImpl(cn.featherfly.common.io.Properties defaults)
defaults - the defaults.public PropertiesImpl(java.nio.charset.Charset charset)
charset - charsetpublic PropertiesImpl(java.util.Properties properties)
properties - propertiespublic PropertiesImpl(java.util.Properties properties,
java.nio.charset.Charset charset)
properties - java.util.Propertiescharset - charsetpublic java.lang.String setProperty(java.lang.String key,
java.lang.String value)
setProperty 在接口中 cn.featherfly.common.io.Propertiespublic java.lang.String setProperty(java.lang.String key,
java.lang.String value,
java.lang.String comment)
setProperty 在接口中 cn.featherfly.common.io.Propertiespublic cn.featherfly.common.io.Properties.Property setProperty(cn.featherfly.common.io.Properties.Property property)
setProperty 在接口中 cn.featherfly.common.io.Propertiespublic java.lang.String getProperty(java.lang.String key)
getProperty 在接口中 cn.featherfly.common.io.Propertiespublic java.lang.String getProperty(java.lang.String key,
java.lang.String defaultValue)
getProperty 在接口中 cn.featherfly.common.io.Propertiespublic cn.featherfly.common.io.Properties.Property getPropertyPart(java.lang.String key)
getPropertyPart 在接口中 cn.featherfly.common.io.Propertiespublic java.util.Collection<cn.featherfly.common.io.Properties.Property> getPropertyParts()
getPropertyParts 在接口中 cn.featherfly.common.io.Propertiespublic java.util.Collection<java.lang.String> getPropertyNames()
getPropertyNames 在接口中 cn.featherfly.common.io.Propertiespublic java.util.Collection<cn.featherfly.common.io.Properties.Part> listAll()
listAll 在接口中 cn.featherfly.common.io.Propertiespublic java.nio.charset.Charset getCharset()
getCharset 在接口中 cn.featherfly.common.io.Propertiespublic java.util.Properties toJdkProperties()
toJdkProperties 在接口中 cn.featherfly.common.io.Propertiespublic void store(java.io.OutputStream out)
throws java.io.IOException
store 在接口中 cn.featherfly.common.io.Propertiesjava.io.IOExceptionpublic void load(java.io.InputStream is)
throws java.io.IOException
load 在接口中 cn.featherfly.common.io.Propertiesjava.io.IOException