public class PropertiesImpl
extends java.lang.Object
implements cn.featherfly.common.io.Properties
| Constructor and Description |
|---|
PropertiesImpl()
Creates an empty property list with no default values.
|
PropertiesImpl(java.nio.charset.Charset charset)
Deprecated.
jdk properties file only charset 8859_1,PropertiesImpl stored
file write it's charset in file
|
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 the specified defaults.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
void |
store(java.io.OutputStream out,
java.nio.charset.Charset charset) |
java.util.Properties |
toJdkProperties() |
public PropertiesImpl()
@Deprecated public PropertiesImpl(java.nio.charset.Charset charset)
charset - the charsetpublic PropertiesImpl(cn.featherfly.common.io.Properties defaults)
defaults - the defaults.public PropertiesImpl(java.util.Properties properties)
properties - propertiespublic java.lang.String setProperty(java.lang.String key,
java.lang.String value)
setProperty in interface cn.featherfly.common.io.Propertiespublic java.lang.String setProperty(java.lang.String key,
java.lang.String value,
java.lang.String comment)
setProperty in interface cn.featherfly.common.io.Propertiespublic cn.featherfly.common.io.Properties.Property setProperty(cn.featherfly.common.io.Properties.Property property)
setProperty in interface cn.featherfly.common.io.Propertiespublic java.lang.String getProperty(java.lang.String key)
getProperty in interface cn.featherfly.common.io.Propertiespublic java.lang.String getProperty(java.lang.String key,
java.lang.String defaultValue)
getProperty in interface cn.featherfly.common.io.Propertiespublic cn.featherfly.common.io.Properties.Property getPropertyPart(java.lang.String key)
getPropertyPart in interface cn.featherfly.common.io.Propertiespublic java.util.Collection<cn.featherfly.common.io.Properties.Property> getPropertyParts()
getPropertyParts in interface cn.featherfly.common.io.Propertiespublic java.util.Collection<java.lang.String> getPropertyNames()
getPropertyNames in interface cn.featherfly.common.io.Propertiespublic java.util.Collection<cn.featherfly.common.io.Properties.Part> listAll()
listAll in interface cn.featherfly.common.io.Propertiespublic java.nio.charset.Charset getCharset()
getCharset in interface cn.featherfly.common.io.Propertiespublic java.util.Properties toJdkProperties()
toJdkProperties in interface cn.featherfly.common.io.Propertiespublic void store(java.io.OutputStream out)
throws java.io.IOException
store in interface cn.featherfly.common.io.Propertiesjava.io.IOExceptionpublic void store(java.io.OutputStream out,
java.nio.charset.Charset charset)
throws java.io.IOException
store in interface cn.featherfly.common.io.Propertiesjava.io.IOExceptionpublic void load(java.io.InputStream is)
throws java.io.IOException
load in interface cn.featherfly.common.io.Propertiesjava.io.IOException