public class PropertiesUtil extends Object
修飾子とタイプ | メソッドと説明 |
---|---|
static void |
store(Properties properties,
OutputStream out,
String header)
Properties テーブル内のプロパティリスト (キーと要素のペア) を、load メソッドを使って Properties テーブルにロードするのに適切なフォーマットで出力ストリームに書き込みます。
|
public static void store(Properties properties, OutputStream out, String header) throws IOException
このメソッドは、
Properties.store(OutputStream, String)
を
拡張したもので、出力内容は行単位で文字列ソートされます。
properties
- 出力元となる情報out
- 出力ストリームheader
- プロパティリストの記述IOException
- このプロパティリストを指定した出力ストリームに書き込んで、IOException がスローされた場合ClassCastException
- この Properties オブジェクトに、String ではないキーまたは値が格納されている場合NullPointerException
- out が null の場合Copyright © 2012 NTT DATA INTRAMART CORPORATION