|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectrydeen.io.GlueDestination
public class GlueDestination
DestinationとTargetSourceを繋ぐためのDestinationの実装クラスです.
Destinationとして扱われますが,
メソッドを呼び出してTargetSourceを取り出せます.
getTargetSource
| コンストラクタの概要 | |
|---|---|
GlueDestination()
|
|
| メソッドの概要 | |
|---|---|
void |
close()
何も行いません. |
OutputStream |
getOutput(ProcessTarget target)
引数で与えられたProcessTargetを出力するための出力ストリームを作成して,返します. |
OutputStream |
getOutput(String name)
引数で与えられた文字列に出力するための出力ストリームを作成して,返します. |
TargetSource |
getTargetSource()
このオブジェクトが持つTargetSourceを返します. |
boolean |
isClosed()
このメソッドが閉じられているかを返します. |
void |
output(ProcessTarget target)
このオブジェクトが持つTargetSourceにそのまま引数のProcessTargetを追加します. |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public GlueDestination()
| メソッドの詳細 |
|---|
public TargetSource getTargetSource()
このオブジェクトが持つTargetSourceを返します.
返されるTargetSourceには
メソッドなどを使って出力したデータが含まれます.
getOutput
このメソッドは常に有効なTargetSourceを返します.
public OutputStream getOutput(String name)
throws IOException
引数で与えられた文字列に出力するための出力ストリームを作成して,返します. 返される出力ストリームは,必要なデータを出力し終えたら閉じてください.
Destination 内の getOutputname - 出力する名前.
IOException
public OutputStream getOutput(ProcessTarget target)
throws IOException
引数で与えられたProcessTargetを出力するための出力ストリームを作成して,返します. 返される出力ストリームは,必要なデータを出力し終えたら閉じてください.
Destination 内の getOutputtarget - 出力するProcessTarget.
IOException
public void output(ProcessTarget target)
throws IOException
Destination 内の outputIOExceptionpublic void close()
Destination 内の closepublic boolean isClosed()
Destination の記述:
Destination 内の isClosed
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||