jp.gr.java_conf.dangan.io
public class DisconnectableOutputStream extends java.io.OutputStream implements Disconnectable
-- revision history -- $Log: DisconnectableOutputStream.java,v $ Revision 1.0 2002/07/24 00:00:00 dangan add to version control [maintenance] タブ廃止 ライセンス文の修正 ソース整備
Constructor and Description |
---|
DisconnectableOutputStream(java.io.OutputStream out)
out との接続を解除可能な出力ストリームを構築する。
|
Modifier and Type | Method and Description |
---|---|
void |
close()
接続された出力ストリームとの接続を解除する。
このメソッドは disconnect() を呼び出すだけである。 |
void |
disconnect()
接続された出力ストリームとの接続を解除する。
|
void |
flush()
接続された出力ストリームに蓄えられたデータを全て出力する
ように指示する。
|
void |
write(byte[] buffer)
接続された出力ストリームに buffer内のデータを
全て出力する。
|
void |
write(byte[] buffer,
int index,
int length)
接続された出力ストリームに buffer内のデータを
indexで指定された位置から lengthバイト出力する。
|
void |
write(int data)
接続された出力ストリームに 1バイトのデータを出力する。
|
public DisconnectableOutputStream(java.io.OutputStream out)
out
- 出力ストリームpublic void write(int data) throws java.io.IOException
write
in class java.io.OutputStream
data
- 書きこまれるべき 1バイトのデータ。java.io.IOException
- 入出力エラーが発生した場合public void write(byte[] buffer) throws java.io.IOException
write
in class java.io.OutputStream
buffer
- 書きこまれるべきデータを格納した
バイト配列。java.io.IOException
- 入出力エラーが発生した場合public void write(byte[] buffer, int index, int length) throws java.io.IOException
write
in class java.io.OutputStream
buffer
- 書きこまれるべきデータを格納した
バイト配列。index
- buffer内の書きこむべきデータの開始位置。length
- 書きこむべきデータ量。java.io.IOException
- 入出力エラーが発生した場合public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
- 入出力エラーが発生した場合public void close()
close
in interface java.io.Closeable
close
in class java.io.OutputStream
public void disconnect()
disconnect
in interface Disconnectable
When you found typographical errors or omissions, Please mail to cqw10305@nifty.com
The company name and product name which are used in this document, it is the trademark or registered trademark of each company generally.
Copyright © 2001-2002 Michel Ishizuka. All Rights Reserved.