|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjava.io.Writer
java.io.PrintWriter
shohaku.core.io.IntrospectWriter
オブジェクトの内部情報を出力する機能を持つ拡張プリントライターを提供します。
配列・多次元配列の要素の出力や日付のフォーマット出力、 javaBean
のプロパティ出力等の機能が提供されています。
入れ子クラスの概要 | |
static interface |
IntrospectWriter.Printer
IntrospectWriter.print(Object o) で使用される出力機能を定義します。 |
フィールドの概要 | |
protected static java.util.List |
DEFAULT_PRINTERS
デフォルトの出力プリンタを格納します。 |
クラス java.io.PrintWriter から継承したフィールド |
out |
クラス java.io.Writer から継承したフィールド |
lock |
コンストラクタの概要 | |
IntrospectWriter()
標準の出力ストリームへ出力する IntrospectWriter を構築します。 |
|
IntrospectWriter(boolean autoFlush)
標準の出力ストリームへ出力する IntrospectWriter を構築します。 |
|
IntrospectWriter(java.io.OutputStream out)
指定された出力ストリームから新しい IntrospectWriter を構築します。 |
|
IntrospectWriter(java.io.OutputStream out,
boolean autoFlush)
指定された出力ストリームから新しい IntrospectWriter を構築します。 |
|
IntrospectWriter(java.io.Writer out)
自動行フラッシュは行わずに、新しい IntrospectWriter を構築します。 |
|
IntrospectWriter(java.io.Writer out,
boolean autoFlush)
新しい IntrospectWriter を構築します。 |
メソッドの概要 | |
void |
addPrinter(IntrospectWriter.Printer printer)
出力プリンタを追加します。 |
IntrospectWriter.Printer[] |
getPrinters()
登録済みの出力プリンタを返却します。 |
void |
print(java.lang.Object o)
登録済みの出力プリンタを使用して出力ストリームへ出力します。 |
void |
print(java.lang.Object o,
IntrospectWriter.Printer printer)
出力プリンタを使用して出力ストリームへ出力します。 |
void |
printArray(java.lang.Object a)
多次元配列を出力します。 |
void |
printArray(java.lang.Object title,
java.lang.Object a)
タイトルと多次元配列を出力します。 |
void |
printBean(java.lang.Object bean)
JavaBean の保有するプロパティを全て出力します。
|
void |
printBeans(java.lang.Object[] beans)
全ての JavaBean の保有するプロパティを全て出力します。
|
void |
printClass(java.lang.Object c)
クラス型を拡張書式で出力します。 |
void |
printColl(java.util.Collection c)
コレクションを出力します。 |
void |
printConstants(java.lang.Class c)
public, static, final であるフィールドを全て出力します。 |
void |
printFields(java.lang.Object o)
public であるフィールドを全て出力します。 |
void |
printlf(int len)
引数分の改行を出力します。 |
void |
println(java.lang.Object o,
IntrospectWriter.Printer printer)
出力プリンタを使用して出力ストリームへ出力して改行します。 |
void |
printMap(java.util.Map m)
マップを出力します。 |
void |
printsp(int len)
引数分のスペースを出力します。 |
boolean |
removePrinter(IntrospectWriter.Printer printer)
出力プリンタを削除します。 |
クラス java.io.PrintWriter から継承したメソッド |
checkError, close, flush, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected static final java.util.List DEFAULT_PRINTERS
コンストラクタの詳細 |
public IntrospectWriter()
IntrospectWriter
を構築します。
public IntrospectWriter(boolean autoFlush)
IntrospectWriter
を構築します。
autoFlush
- true
の場合 println()
メソッドでは出力バッファをフラッシュするpublic IntrospectWriter(java.io.OutputStream out)
IntrospectWriter
を構築します。
out
- 出力ストリームpublic IntrospectWriter(java.io.OutputStream out, boolean autoFlush)
IntrospectWriter
を構築します。
out
- 出力ストリームautoFlush
- true
の場合 println()
メソッドでは出力バッファをフラッシュするpublic IntrospectWriter(java.io.Writer out)
IntrospectWriter
を構築します。
out
- 文字出力ストリームpublic IntrospectWriter(java.io.Writer out, boolean autoFlush)
IntrospectWriter
を構築します。
out
- 文字出力ストリームautoFlush
- true
の場合 println()
メソッドでは出力バッファをフラッシュするメソッドの詳細 |
public void print(java.lang.Object o)
o
- 出力値public void print(java.lang.Object o, IntrospectWriter.Printer printer)
Printer.isAssignable(Object)
が true
の場合のみ出力されます。
o
- 出力値printer
- 出力プリンタpublic void println(java.lang.Object o, IntrospectWriter.Printer printer)
Printer.isAssignable(Object)
が true
の場合のみ出力されます。
o
- 出力値printer
- 出力プリンタpublic void printlf(int len)
len
- 改行数public void printsp(int len)
len
- スペース数public void printArray(java.lang.Object a)
<ArrayClassType(length)>[item1, item2, <ArrayClassType(length)>[item3-1, item3-2, …], item4]配列以外は print(Object) を呼ぶ
a
- 出力値public void printArray(java.lang.Object title, java.lang.Object a)
タイトル : <ArrayClassType(length)>[item1, item2, <ArrayClassType(length)>[item3-1, item3-2, …], item4]
title
- タイトルa
- 出力値public void printColl(java.util.Collection c)
ClassName[ item1, item2, item3, … ]
c
- 出力値public void printMap(java.util.Map m)
ClassName{ key1:value1, key2:value2, key3:value3, … }
m
- 出力値public void printBean(java.lang.Object bean)
JavaBean
の保有するプロパティを全て出力します。
ClassName{ property1=value1, property2=value2, … }
bean
- 出力する JavaBean
public void printBeans(java.lang.Object[] beans)
JavaBean
の保有するプロパティを全て出力します。
ArrayClassType[length] [ [0]ClassName{ property1=value1, property2=value2, … } [1]ClassName{ property1=value1, property2=value2, … } … ]
beans
- 出力する JavaBean
の配列public void printConstants(java.lang.Class c)
ClassName{ public static final [field name1] = [field value1] public static final transient [field name2] = [field value2] ・・・ }
c
- 出力するクラスpublic void printFields(java.lang.Object o)
ClassName{ public static final [field name1] = [field value1] public static [field name2] = [field value2] public final [field name3] = [field value3] public [field name4] = [field value4] public transient [field name5] = [field value5] public volatile [field name6] = [field value6] ・・・ }
o
- 出力するオブジェクトpublic IntrospectWriter.Printer[] getPrinters()
public void addPrinter(IntrospectWriter.Printer printer)
printer
- 出力プリンタpublic boolean removePrinter(IntrospectWriter.Printer printer)
printer
- 出力プリンタ
true
を返すpublic void printClass(java.lang.Object c)
c
- 出力するクラス型
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |