|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectmy_util.LogResource
ログを保管するシステム資源の管理を行うサポート・クラスです。
Log
フィールドの概要 | |
protected java.lang.String |
encoding
ログを保管する資源への出力する際の文字エンコーディングの名前 |
protected int |
opened_cnt
このログ保管先資源を使用している Log インスタンスの数 |
protected java.io.PrintStream |
out
ログを保管する資源への出力先 PrintStream |
メソッドの概要 | |
protected static LogResource |
create(java.lang.String path,
java.lang.String encoding)
ログ保管先を登録します。 |
protected static void |
destroy(java.lang.String path)
ログ保管先のシステム資源登録を取り消す。 |
static java.lang.String |
get_encoding(java.lang.String path)
ログ保管先システム資源の文字エンコーディングを取得します。 |
static int |
get_resource_cnt()
ログ保管先として使用している PrintStream の数を取得します。 |
static boolean |
is_registered(java.lang.String path)
既に登録されているシステム資源かどうかを判定します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected java.io.PrintStream out
protected java.lang.String encoding
protected int opened_cnt
メソッドの詳細 |
protected static LogResource create(java.lang.String path, java.lang.String encoding) throws java.lang.Exception
path
- ログを保管するシステム資源へのパス。
現在はファイルのみサポートencoding
- ログを保管するシステム資源へ出力する際の
文字エンコーディングの名前。ローカルシステムの
デフォルト文字エンコーディングを指定する場合は
null を指定する
java.io.FileNotFoundException
- ログ保管先がディレクトリか
オープンできないファイルの場合
java.lang.SecurityException
- 書込み権限でオープンできない場合
UnsupportedExcodingException
- 指定された文字エンコーディングがサポートされていない場合
java.lang.Exception
- すでにオープンされたログ保管先 PrintStream
の文字エンコーディングと encoding で指定されたものが
一致していない場合protected static void destroy(java.lang.String path)
path
- ログを保管するシステム資源へのパス。
現在はファイルのみサポートpublic static int get_resource_cnt()
public static boolean is_registered(java.lang.String path)
path
- 判定するシステム資源へのパス
public static java.lang.String get_encoding(java.lang.String path)
path
- システム資源へのパス
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |