|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectcom.JRcServer.sys.log.custom.base.LogFormatObj
public class LogFormatObj
ログ出力フォーマット実装.
ログ出力用フォーマットを定義した実装を行います.
ログフォーマットのサンプルとして、以下のような定義が存在します.
"{%s*},{%d10},${%c}"
この場合、左から以下のような解析結果となります.
{%s*} : 文字列型での出力、出力情報文字数[Binary]は、対象値にあわせる.
{%d10} : 数値型での出力、出力情報桁は10桁(未満の場合、0埋め).
{%c} : キャラクタ型での出力、1文字のキャラクタ情報を出力.
上記のような定義となります.
| フィールドの概要 |
|---|
| インタフェース com.JRcServer.sys.log.custom.common.LogFormat から継承されたフィールド |
|---|
FORMAT_UNKNOWN, OUT_LENGTH_TO_NOTHING, PATTERN_PARAMETER, PATTERN_PAUSE, TYPE_BYTE, TYPE_CALENDAR, TYPE_CHARACTER, TYPE_DATE, TYPE_DATETIME, TYPE_INT, TYPE_LONG, TYPE_MASK, TYPE_SHORT, TYPE_STRING |
| コンストラクタの概要 | |
|---|---|
LogFormatObj()
コンストラクタ. |
|
LogFormatObj(java.lang.String format)
フォーマット設定. |
|
| メソッドの概要 | |
|---|---|
void |
clear()
情報クリア. |
void |
create(java.lang.String format)
フォーマット設定. |
java.lang.String |
getFormat()
設定フォーマット情報の取得. |
int |
getFormatPattern(int no)
フォーマットデータ並びの取得. |
int |
getFormatPatternLength()
フォーマットデータ並び順の個数を取得. |
int |
getParam(int no)
パラメータ属性の取得. |
int |
getParameterLength()
パラメータ数取得. |
int |
getParamToOutLength(int no)
パラメータ属性での、出力情報数の取得. |
java.lang.String |
getPause(int no)
区切り情報の取得. |
int |
getPauseLength()
区切り情報数取得. |
boolean |
isCreate()
情報が生成されているかチェック. |
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public LogFormatObj()
public LogFormatObj(java.lang.String format)
throws InputException,
ReadSyntaxException
format - 対象のフォーマットデータを設定します.
InputException - 入力例外.
ReadSyntaxException - 読み込み構文例外.| メソッドの詳細 |
|---|
public final void create(java.lang.String format)
throws InputException,
ReadSyntaxException
LogFormat 内の createformat - 対象のフォーマットデータを設定します.
InputException - 入力例外.
ReadSyntaxException - 読み込み構文例外.public final void clear()
LogFormat 内の clear
public final int getParam(int no)
throws InputException
LogFormat 内の getParamno - 取得対象の項番を指定します.
InputException - 入力例外.
public final int getParamToOutLength(int no)
throws InputException
LogFormat 内の getParamToOutLengthno - 取得対象の項番を指定します.
InputException - 入力例外.
public final java.lang.String getPause(int no)
throws InputException
LogFormat 内の getPauseno - 取得対象の項番を指定します.
InputException - 入力例外.public final int getParameterLength()
LogFormat 内の getParameterLengthpublic final int getPauseLength()
LogFormat 内の getPauseLength
public final int getFormatPattern(int no)
throws InputException
LogFormat 内の getFormatPatternno - 取得対象のデータ並び順の項番を指定します.
InputException - 入力例外.public final int getFormatPatternLength()
LogFormat 内の getFormatPatternLengthpublic final java.lang.String getFormat()
LogFormat 内の getFormatpublic final boolean isCreate()
LogFormat 内の isCreate
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||