|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.util.io.PropertiesUtil
public abstract class PropertiesUtil
Properties用のユーティリティクラスです。
| コンストラクタの概要 | |
|---|---|
PropertiesUtil()
|
|
| メソッドの概要 | |
|---|---|
static void |
load(Properties props,
File file)
プラットフォームデフォルトエンコーディングでファイルを読み込んで Propertiesにロードします(例外処理はラップします)。 |
static void |
load(Properties props,
File file,
String encoding)
指定のエンコーディングでファイルを読み込んで Propertiesにロードします(例外処理はラップします)。 |
static void |
load(Properties props,
InputStream in)
Properties.load(InputStream)の例外処理をラップします。 |
static void |
load(Properties props,
Reader reader)
Properties.load(Reader)の例外処理をラップします。 |
static void |
load(Properties props,
String path)
コンテキストクラスローダからリソースを読み込んで Propertiesにロードします(例外処理はラップします)。 |
static void |
load(Properties props,
URL url)
URLを読み込んでPropertiesにロードします(例外処理はラップします)。 |
static void |
store(Properties props,
File file,
String comments)
プラットフォームデフォルトエンコーディングでファイルを書き出して Propertiesをストアします(例外処理はラップします)。 |
static void |
store(Properties props,
File file,
String encoding,
String comments)
指定のエンコーディングでファイルを書き出して Propertiesをストアします(例外処理はラップします)。 |
static void |
store(Properties props,
OutputStream out,
String comments)
Properties.store(OutputStream, String)の例外処理をラップします。 |
static void |
store(Properties props,
Writer writer,
String comments)
Properties.store(Writer, String)の例外処理をラップします。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public PropertiesUtil()
| メソッドの詳細 |
|---|
public static void load(Properties props,
InputStream in)
Properties.load(InputStream)の例外処理をラップします。
入力ストリームはクローズされません。
props - プロパティセット。nullであってはいけませんin - 入力ストリーム。nullであってはいけません
public static void load(Properties props,
Reader reader)
Properties.load(Reader)の例外処理をラップします。
入力リーダはクローズされません。
props - プロパティセット。nullであってはいけませんreader - 入力リーダ。nullであってはいけません
public static void load(Properties props,
File file,
String encoding)
Propertiesにロードします(例外処理はラップします)。
props - プロパティセット。nullであってはいけませんfile - ファイル。nullであってはいけませんencoding - エンコーディング。nullや空文字列であってはいけません
public static void load(Properties props,
File file)
Propertiesにロードします(例外処理はラップします)。
props - プロパティセット。nullであってはいけませんfile - ファイル。nullであってはいけません
public static void load(Properties props,
URL url)
URLを読み込んでPropertiesにロードします(例外処理はラップします)。
props - プロパティセット。nullであってはいけませんurl - URL。nullであってはいけません
public static void load(Properties props,
String path)
Propertiesにロードします(例外処理はラップします)。
props - プロパティセット。nullであってはいけませんpath - リソースのパス。nullや空文字列であってはいけません
public static void store(Properties props,
OutputStream out,
String comments)
Properties.store(OutputStream, String)の例外処理をラップします。
出力ストリームはクローズされません。
props - プロパティセット。nullであってはいけませんout - 出力ストリーム。nullであってはいけませんcomments - コメント
public static void store(Properties props,
Writer writer,
String comments)
Properties.store(Writer, String)の例外処理をラップします。
出力ライタはクローズされません。
props - プロパティセット。nullであってはいけませんwriter - 出力ライタ。nullであってはいけませんcomments - コメント
public static void store(Properties props,
File file,
String encoding,
String comments)
Propertiesをストアします(例外処理はラップします)。
props - プロパティセット。nullであってはいけませんfile - ファイル。nullであってはいけませんencoding - エンコーディング。nullや空文字列であってはいけませんcomments - コメント
public static void store(Properties props,
File file,
String comments)
Propertiesをストアします(例外処理はラップします)。
props - プロパティセット。nullであってはいけませんfile - ファイル。nullであってはいけませんcomments - コメント
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||