|
|||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--java.io.OutputStream | +--mdw.nbio.NonblockingOutputStream
A NonblockingOutputStream is an OutputStream with nonblocking semantics. The various write() methods are blocking, while the nbWrite() methods are nonblocking. It was necessary to introduce new methods as the original write() calls return void, and hence there is no way to indicate that only a portion of the request was written.
コンストラクタの概要 | |
NonblockingOutputStream()
|
メソッドの概要 | |
abstract void |
close()
|
abstract void |
flush()
Flush the underlying output stream. |
abstract int |
nbWrite(byte b)
Perform a non-blocking write of one byte to this output stream. |
abstract int |
nbWrite(byte[] b)
Perform a nonblocking write of up to b.length bytes
to the underlying stream. |
abstract int |
nbWrite(byte[] b,
int off,
int len)
Perform a nonblocking write of up to len bytes
to the underlying stream starting at offset off .
|
abstract void |
write(byte[] b)
Perform a blocking write of b.length bytes
to the underlying stream. |
abstract void |
write(byte[] b,
int off,
int len)
Perform a blocking write of len bytes to the
underlying stream from the byte array b starting at offset
off . |
abstract void |
write(int b)
Perform a blocking write of one byte to this output stream. |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
public NonblockingOutputStream()
メソッドの詳細 |
public abstract void write(int b) throws java.io.IOException
java.io.OutputStream
内の write
public abstract void write(byte[] b) throws java.io.IOException
b.length
bytes
to the underlying stream. Use nbWrite() to perform a nonblocking
write.java.io.OutputStream
内の write
public abstract void write(byte[] b, int off, int len) throws java.io.IOException
len
bytes to the
underlying stream from the byte array b
starting at offset
off
. Use nbWrite() to perform a nonblocking write.java.io.OutputStream
内の write
public abstract int nbWrite(byte b) throws java.io.IOException
public abstract int nbWrite(byte[] b) throws java.io.IOException
b.length
bytes
to the underlying stream. Returns the number of bytes written, or
0 if nothing was written. Use write() to perform a blocking
write.public abstract int nbWrite(byte[] b, int off, int len) throws java.io.IOException
len
bytes
to the underlying stream starting at offset off
.
Returns the number of bytes written, or 0 if nothing was written.
Use write() to perform a blocking write.public abstract void flush()
java.io.OutputStream
内の flush
public abstract void close() throws java.io.IOException
java.io.OutputStream
内の close
|
|||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |