|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.io.PrintStream
shohaku.core.io.IntrospectPrintStream
shohaku.core.util.debug.DebugPrintStream
デバック用のプリント文を出力する様々なユーティリティ機能を持つ拡張プリントストリームを提供します。
親クラスが持つ機能以外に日付のフォーマット出力やコレクションの表形式の出力、タイマー出力等の機能が追加されています。
以外にも様々なフォーマットで出力するユーティリティメソッドが多数提供されています。
入れ子クラスの概要 | |
static interface |
DebugPrintStream.Printer
DebugPrintStream.print(Object o) で使用される出力機能を定義します。 |
フィールドの概要 | |
protected static java.util.List |
DEFAULT_PRINTERS
デフォルトの出力プリンタを格納します。 |
protected java.util.List |
printers
このインスタンスで使用する出力プリンタ。 |
クラス java.io.FilterOutputStream から継承したフィールド |
out |
コンストラクタの概要 | |
DebugPrintStream()
標準の出力ストリームを出力先として初期化します。 |
|
DebugPrintStream(boolean autoFlush)
標準の出力ストリームを出力先として初期化します。 |
|
DebugPrintStream(java.io.OutputStream out)
指定された出力ストリームを出力先として初期化します。 |
|
DebugPrintStream(java.io.OutputStream out,
boolean autoFlush)
指定された出力ストリームを出力先として初期化します。 |
メソッドの概要 | |
void |
addPrinter(DebugPrintStream.Printer printer)
出力プリンタを追加します。 |
void |
addPrinter(int index,
DebugPrintStream.Printer printer)
出力プリンタを追加します。 |
protected static boolean |
deepEquals(java.lang.Object from,
java.lang.Object to)
厳密な同一性比較を行う。 |
protected static java.lang.String |
formatDate(java.util.Date date,
java.lang.String pattern)
日付型をフォーマット変換します。 |
protected static java.lang.Object |
formatDate(java.lang.Object date)
日付型の書式で日付文字列に変換します。 |
DebugPrintStream.Printer[] |
getPrinters()
登録済みの出力プリンタを返却します。 |
void |
print(java.lang.Object o)
登録済みの出力プリンタを使用して出力ストリームへ出力します。 |
void |
print(java.lang.Object title,
boolean value)
タイトルを付けて出力します。 |
void |
print(java.lang.Object title,
char value)
タイトルを付けて出力します。 |
void |
print(java.lang.Object o,
DebugPrintStream.Printer printer)
出力プリンタを使用して出力ストリームへ出力します。 |
void |
print(java.lang.Object title,
double value)
タイトルを付けて出力します。 |
void |
print(java.lang.Object title,
float value)
タイトルを付けて出力します。 |
void |
print(java.lang.Object title,
int value)
タイトルを付けて出力します。 |
void |
print(java.lang.Object title,
long value)
タイトルを付けて出力します。 |
void |
print(java.lang.Object title,
java.lang.Object value)
タイトルを付けて出力します。 |
void |
print(java.lang.Object title,
java.lang.Object name,
java.lang.Object value)
タイトルと名前=値を付けて出力します。 |
void |
print(java.lang.Object title,
java.lang.Object name,
java.lang.Object value1,
java.lang.Object value2)
タイトルと名前=値1、値2を付けて出力します。 |
void |
printArrayTbl(java.lang.Object a)
多次元配列を表形式で出力します。 |
void |
printArrayTbl(java.lang.Object a,
int column)
多次元配列を表形式で出力します。 |
void |
printBeansTbl(java.lang.Object[] beans)
全ての JavaBean の保有するプロパティを全て表形式で出力します。
|
void |
printBeanTbl(java.lang.Object bean)
JavaBean の保有するプロパティを全て表形式で出力します。
|
void |
printCollTbl(java.util.Collection c)
コレクションを表形式で出力します。 |
void |
printCollTbl(java.util.Collection c,
int column)
コレクションを表形式で出力します。 |
void |
printCompBean(java.lang.Object from,
java.lang.Object to)
JavaBean の保有する同一名のプロパティを全て比較しその情報を出力する |
void |
printCompMap(java.util.Map from,
java.util.Map to)
JavaBean の保有する同一名のプロパティを全て比較しその情報を出力する |
void |
printCurrentTime()
現在時刻を出力します。 |
void |
printDate(java.util.Date date)
日付型を出力します。 |
void |
printDLine(int len)
二重破線を出力します。 |
void |
printDLineln(int len)
二重破線を出力して前後1行分改行します。 |
void |
printDLineln(int len,
int beginLine,
int endLine)
破線前後の改行数を指定して二重破線を出力します。 |
void |
printDLineln(java.lang.Object title,
int len)
タイトルを指定して二重破線を出力します。 |
void |
printLine(int len)
破線を出力します。 |
void |
printLineln(int len)
破線を出力して1行分改行します。 |
void |
printLineln(int len,
int beginLine,
int endLine)
破線前後の改行数を指定して破線を出力します。 |
void |
printLineln(java.lang.Object title,
int len)
タイトルを指定して破線を出力します。 |
void |
println(java.lang.Object title,
boolean value)
タイトルを付けて出力し改行します。 |
void |
println(java.lang.Object title,
char value)
タイトルを付けて出力し改行します。 |
void |
println(java.lang.Object o,
DebugPrintStream.Printer printer)
出力プリンタを使用して出力ストリームへ出力して改行します。 |
void |
println(java.lang.Object title,
double value)
タイトルを付けて出力し改行します。 |
void |
println(java.lang.Object title,
float value)
タイトルを付けて出力し改行します。 |
void |
println(java.lang.Object title,
int value)
タイトルを付けて出力し改行します。 |
void |
println(java.lang.Object title,
long value)
タイトルを付けて出力し改行します。 |
void |
println(java.lang.Object title,
java.lang.Object value)
タイトルを付けて出力し改行します。 |
void |
println(java.lang.Object title,
java.lang.Object name,
java.lang.Object value)
タイトルと名前=値を付けて出力し改行します。 |
void |
println(java.lang.Object title,
java.lang.Object name,
java.lang.Object value1,
java.lang.Object value2)
タイトルと名前=値1、値2を付けて出力し改行します。 |
void |
printMapTbl(java.util.Map m)
マップを表形式で出力します。 |
void |
printType(java.lang.Object value)
型情報を付けて出力します。 |
void |
printTypeColl(java.util.Collection c)
要素のクラス名を含めコレクションを出力します。 |
void |
printTypeln(java.lang.Object value)
型情報を付けて出力し改行します。 |
void |
printTypeMap(java.util.Map m)
要素のクラス名を含めマップを出力します。 |
boolean |
removePrinter(DebugPrintStream.Printer printer)
出力プリンタを削除します。 |
boolean |
removePrinter(int index)
出力プリンタを削除します。 |
クラス shohaku.core.io.IntrospectPrintStream から継承したメソッド |
printArray, printArray, printBean, printBeans, printClass, printClass, printColl, printConstants, printDeepArrays, printFields, printlf, printMap, printNull, printsp |
クラス java.io.PrintStream から継承したメソッド |
checkError, close, flush, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, println, println, setError, write, write |
クラス java.io.FilterOutputStream から継承したメソッド |
write |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected static final java.util.List DEFAULT_PRINTERS
protected final java.util.List printers
コンストラクタの詳細 |
public DebugPrintStream()
public DebugPrintStream(boolean autoFlush)
autoFlush
- true
の場合 println()
メソッドでは出力バッファをフラッシュするpublic DebugPrintStream(java.io.OutputStream out)
out
- 出力ストリームpublic DebugPrintStream(java.io.OutputStream out, boolean autoFlush)
out
- 出力ストリームautoFlush
- true
の場合 println()
メソッドでは出力バッファをフラッシュするメソッドの詳細 |
public DebugPrintStream.Printer[] getPrinters()
public void addPrinter(DebugPrintStream.Printer printer)
printer
- 出力プリンタpublic void addPrinter(int index, DebugPrintStream.Printer printer)
index
- 登録するインデックス位置printer
- 出力プリンタ
java.lang.IndexOutOfBoundsException
- インデックス位置が範囲外の場合public boolean removePrinter(int index)
index
- 登録するインデックス位置
true
を返すpublic boolean removePrinter(DebugPrintStream.Printer printer)
printer
- 出力プリンタ
true
を返すpublic void print(java.lang.Object o)
IntrospectPrintStream
内の print
o
- 出力値public void print(java.lang.Object o, DebugPrintStream.Printer printer)
Printer.isAssignable(Object)
が true
の場合のみ出力されます。
o
- 出力値printer
- 出力プリンタpublic void print(java.lang.Object title, boolean value)
title
- タイトルvalue
- 出力値public void print(java.lang.Object title, char value)
title
- タイトルvalue
- 出力値public void print(java.lang.Object title, double value)
title
- タイトルvalue
- 出力値public void print(java.lang.Object title, float value)
title
- タイトルvalue
- 出力値public void print(java.lang.Object title, int value)
title
- タイトルvalue
- 出力値public void print(java.lang.Object title, long value)
title
- タイトルvalue
- 出力値public void print(java.lang.Object title, java.lang.Object value)
title
- タイトルvalue
- 出力値public void print(java.lang.Object title, java.lang.Object name, java.lang.Object value)
title
- タイトルname
- 値の名前value
- 出力値public void print(java.lang.Object title, java.lang.Object name, java.lang.Object value1, java.lang.Object value2)
title
- タイトルname
- 値の名前value1
- 出力値1value2
- 出力値2public void println(java.lang.Object o, DebugPrintStream.Printer printer)
Printer.isAssignable(Object)
が true
の場合のみ出力されます。
o
- 出力値printer
- 出力プリンタpublic void println(java.lang.Object title, boolean value)
title
- タイトルvalue
- 出力値public void println(java.lang.Object title, char value)
title
- タイトルvalue
- 出力値public void println(java.lang.Object title, double value)
title
- タイトルvalue
- 出力値public void println(java.lang.Object title, float value)
title
- タイトルvalue
- 出力値public void println(java.lang.Object title, int value)
title
- タイトルvalue
- 出力値public void println(java.lang.Object title, long value)
title
- タイトルvalue
- 出力値public void println(java.lang.Object title, java.lang.Object value)
title
- タイトルvalue
- 出力値public void println(java.lang.Object title, java.lang.Object name, java.lang.Object value)
title
- タイトルname
- 値の名前value
- 出力値public void println(java.lang.Object title, java.lang.Object name, java.lang.Object value1, java.lang.Object value2)
title
- タイトルname
- 値の名前value1
- 出力値1value2
- 出力値2public void printLine(int len)
len
- 破線数public void printLineln(int len)
len
- 破線数public void printLineln(java.lang.Object title, int len)
title
- タイトルlen
- 破線数public void printLineln(int len, int beginLine, int endLine)
len
- 破線数beginLine
- 開始改行endLine
- 終了改行public void printDLine(int len)
len
- 破線数public void printDLineln(int len)
len
- 破線数public void printDLineln(java.lang.Object title, int len)
title
- タイトルlen
- 破線数public void printDLineln(int len, int beginLine, int endLine)
len
- 破線数beginLine
- 開始改行endLine
- 終了改行public void printTypeColl(java.util.Collection c)
<ClassName>[ <ClassName>item1, <ClassName>item2, … ]
c
- 出力値public void printTypeMap(java.util.Map m)
<ClassName>{ <ClassName>key1:<ClassName>value1, <ClassName>key2:<ClassName>value2, … }
m
- 出力値public void printArrayTbl(java.lang.Object a)
<ArrayClassType(length)>[ item1 <ArrayClassType(length)>[item2-1, item2-2, item2-3] item3 … ]
a
- 出力値public void printArrayTbl(java.lang.Object a, int column)
<ArrayClassType(length)>[ item1, item2, item3 item4, <ArrayClassType(length)>[item5-1, item5-2, item5-3], item6 item7, … ]
a
- 出力値column
- 1列分の要素数public void printCollTbl(java.util.Collection c)
<ClassName>[ item1 item2 item3 … ]
c
- 出力値public void printCollTbl(java.util.Collection c, int column)
<ClassName>[ item1, item2, item3 item4, item5, item6 item7, … ]
c
- 出力値column
- 1列分の要素数public void printMapTbl(java.util.Map m)
<ClassName>{ key1:value1 key2:value2 key3:value3 … }
m
- 出力値public void printBeanTbl(java.lang.Object bean)
JavaBean
の保有するプロパティを全て表形式で出力します。
<ClassName>{ property1=value1 property2=value2 property3=value3 … }
bean
- 出力する JavaBean
public void printBeansTbl(java.lang.Object[] beans)
JavaBean
の保有するプロパティを全て表形式で出力します。
<ArrayClassType(length)>[length] [ [0]<ClassName>{ property1=value1 property2=value2 property3=value3 … } [1]<ClassName>{ property1=value1 property2=value2 property3=value3 … } … ]
beans
- 出力する JavaBean
の配列public void printDate(java.util.Date date)
date
- 出力値public void printCurrentTime()
public void printCompBean(java.lang.Object from, java.lang.Object to)
JavaBean
の保有する同一名のプロパティを全て比較しその情報を出力する
from
- 比較元to
- 比較先public void printCompMap(java.util.Map from, java.util.Map to)
JavaBean
の保有する同一名のプロパティを全て比較しその情報を出力する
from
- 比較元to
- 比較先public void printType(java.lang.Object value)
value
- 出力値public void printTypeln(java.lang.Object value)
value
- 出力値protected static java.lang.Object formatDate(java.lang.Object date)
変換形式:
date
- 日付
protected static java.lang.String formatDate(java.util.Date date, java.lang.String pattern)
date
- 日付pattern
- 書式
protected static boolean deepEquals(java.lang.Object from, java.lang.Object to)
null
の比較と 配列・多次元配列の内部要素を含む同値性比較を行い、以外は通常の比較と同一。
from
- 比較元to
- 比較先
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |