public interface PropertiesPersister
java.util.Properties
を永続化するための戦略インターフェースで、プラグ可能な解析戦略を可能にします。 デフォルトの実装は DefaultPropertiesPersister であり、java.util.Properties
のネイティブ解析を提供しますが、任意のリーダーからの読み取りと任意のライターへの書き込みを許可します(これにより、プロパティファイルのエンコーディングを指定できます)。
DefaultPropertiesPersister
, Properties
SE修飾子と型 | メソッドと説明 |
---|---|
void | load(PropertiesSE props, InputStreamSE is) 指定された InputStream から指定された Properties オブジェクトにプロパティをロードします。 |
void | load(PropertiesSE props, ReaderSE reader) 指定された Reader から指定された Properties オブジェクトにプロパティをロードします。 |
void | loadFromXml(PropertiesSE props, InputStreamSE is) 指定された XML InputStream から指定された Properties オブジェクトにプロパティをロードします。 |
void | store(PropertiesSE props, OutputStreamSE os, StringSE header) 与えられた Properties オブジェクトの内容を与えられた OutputStream に書き込みます。 |
void | store(PropertiesSE props, WriterSE writer, StringSE header) 指定された Properties オブジェクトの内容を指定された Writer に書き込みます。 |
void | storeToXml(PropertiesSE props, OutputStreamSE os, StringSE header) 指定された Properties オブジェクトの内容を指定された XML OutputStream に書き込みます。 |
void | storeToXml(PropertiesSE props, OutputStreamSE os, StringSE header, StringSE encoding) 指定された Properties オブジェクトの内容を指定された XML OutputStream に書き込みます。 |
void load(PropertiesSE props, InputStreamSE is) throws IOExceptionSE
props
- ロードする Properties オブジェクト is
- ロードする InputStreamIOExceptionSE
- I/O エラーの場合 Properties.load(java.io.Reader)
SEvoid load(PropertiesSE props, ReaderSE reader) throws IOExceptionSE
props
- ロードする Properties オブジェクト reader
- ロードするリーダー IOExceptionSE
- I/O エラーの場合 void store(PropertiesSE props, OutputStreamSE os, StringSE header) throws IOExceptionSE
props
- 保存する Properties オブジェクト os
- 書き込む OutputStreamheader
- プロパティリストの説明 IOExceptionSE
- I/O エラーの場合 Properties.store(java.io.Writer, java.lang.String)
SEvoid store(PropertiesSE props, WriterSE writer, StringSE header) throws IOExceptionSE
props
- 保存する Properties オブジェクト writer
- 書き込むライター header
- プロパティリストの説明 IOExceptionSE
- I/O エラーの場合 void loadFromXml(PropertiesSE props, InputStreamSE is) throws IOExceptionSE
props
- ロードする Properties オブジェクト is
- ロードする InputStreamIOExceptionSE
- I/O エラーの場合 Properties.loadFromXML(java.io.InputStream)
SEvoid storeToXml(PropertiesSE props, OutputStreamSE os, StringSE header) throws IOExceptionSE
props
- 保存する Properties オブジェクト os
- 書き込む OutputStreamheader
- プロパティリストの説明 IOExceptionSE
- I/O エラーの場合 Properties.storeToXML(java.io.OutputStream, String)
SEvoid storeToXml(PropertiesSE props, OutputStreamSE os, StringSE header, StringSE encoding) throws IOExceptionSE
props
- 保存する Properties オブジェクト os
- 書き込む OutputStreamencoding
- 使用するエンコーディング header
- プロパティリストの説明 IOExceptionSE
- I/O エラーの場合 Properties.storeToXML(java.io.OutputStream, String, String)
SE