public class DefaultPropertiesPersister extends java.lang.Object implements PropertiesPersister
Title: DefaultPropertiesPersister.java
Description:
bboss workgroup
Copyright (c) 2008
| 构造器和说明 |
|---|
DefaultPropertiesPersister() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
doLoad(java.util.Properties props,
java.io.Reader reader) |
protected void |
doStore(java.util.Properties props,
java.io.Writer writer,
java.lang.String header) |
protected boolean |
endsWithContinuationMarker(java.lang.String line) |
protected java.lang.String |
escape(java.lang.String str,
boolean isKey) |
void |
load(java.util.Properties props,
java.io.InputStream is)
Load properties from the given InputStream into the given
Properties object.
|
void |
load(java.util.Properties props,
java.io.Reader reader)
Load properties from the given Reader into the given
Properties object.
|
void |
loadFromXml(java.util.Properties props,
java.io.InputStream is)
Load properties from the given XML InputStream into the
given Properties object.
|
void |
store(java.util.Properties props,
java.io.OutputStream os,
java.lang.String header)
Write the contents of the given Properties object to the
given OutputStream.
|
void |
store(java.util.Properties props,
java.io.Writer writer,
java.lang.String header)
Write the contents of the given Properties object to the
given Writer.
|
void |
storeToXml(java.util.Properties props,
java.io.OutputStream os,
java.lang.String header)
Write the contents of the given Properties object to the
given XML OutputStream.
|
void |
storeToXml(java.util.Properties props,
java.io.OutputStream os,
java.lang.String header,
java.lang.String encoding)
Write the contents of the given Properties object to the
given XML OutputStream.
|
protected java.lang.String |
unescape(java.lang.String str) |
public void load(java.util.Properties props,
java.io.InputStream is)
throws java.io.IOException
PropertiesPersisterload 在接口中 PropertiesPersisterprops - the Properties object to load intois - the InputStream to load fromjava.io.IOException - in case of I/O errorsProperties.load(java.io.Reader)public void load(java.util.Properties props,
java.io.Reader reader)
throws java.io.IOException
PropertiesPersisterload 在接口中 PropertiesPersisterprops - the Properties object to load intoreader - the Reader to load fromjava.io.IOException - in case of I/O errorsprotected void doLoad(java.util.Properties props,
java.io.Reader reader)
throws java.io.IOException
java.io.IOExceptionprotected boolean endsWithContinuationMarker(java.lang.String line)
protected java.lang.String unescape(java.lang.String str)
public void store(java.util.Properties props,
java.io.OutputStream os,
java.lang.String header)
throws java.io.IOException
PropertiesPersisterstore 在接口中 PropertiesPersisterprops - the Properties object to storeos - the OutputStream to write toheader - the description of the property listjava.io.IOException - in case of I/O errorsProperties.store(java.io.Writer, java.lang.String)public void store(java.util.Properties props,
java.io.Writer writer,
java.lang.String header)
throws java.io.IOException
PropertiesPersisterstore 在接口中 PropertiesPersisterprops - the Properties object to storewriter - the Writer to write toheader - the description of the property listjava.io.IOException - in case of I/O errorsprotected void doStore(java.util.Properties props,
java.io.Writer writer,
java.lang.String header)
throws java.io.IOException
java.io.IOExceptionprotected java.lang.String escape(java.lang.String str,
boolean isKey)
public void loadFromXml(java.util.Properties props,
java.io.InputStream is)
throws java.io.IOException
PropertiesPersisterloadFromXml 在接口中 PropertiesPersisterprops - the Properties object to load intois - the InputStream to load fromjava.io.IOException - in case of I/O errorsProperties.loadFromXML(java.io.InputStream)public void storeToXml(java.util.Properties props,
java.io.OutputStream os,
java.lang.String header)
throws java.io.IOException
PropertiesPersisterstoreToXml 在接口中 PropertiesPersisterprops - the Properties object to storeos - the OutputStream to write toheader - the description of the property listjava.io.IOException - in case of I/O errorsProperties.storeToXML(java.io.OutputStream, String)public void storeToXml(java.util.Properties props,
java.io.OutputStream os,
java.lang.String header,
java.lang.String encoding)
throws java.io.IOException
PropertiesPersisterstoreToXml 在接口中 PropertiesPersisterprops - the Properties object to storeos - the OutputStream to write toheader - the description of the property listencoding - the encoding to usejava.io.IOException - in case of I/O errorsProperties.storeToXML(java.io.OutputStream, String, String)