|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
seda.nbio.NonblockingOutputStream
seda.nbio.NonblockingSocketOutputStream
Package-internal class implementing NonblockingOutputStream for nonblocking sockets.
Constructor Summary | |
(package private) |
NonblockingSocketOutputStream(NonblockingSocketImpl impl)
|
Method Summary | |
void |
close()
|
void |
flush()
flush() does nothing in this implementation. |
int |
nbWrite(byte b)
Perform a non-blocking write of one byte to this output stream. |
int |
nbWrite(byte[] b)
Perform a nonblocking write of up to b.length bytes
to the underlying stream. |
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 . |
void |
write(byte[] b)
Perform a blocking write of b.length bytes
to the underlying stream. |
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 . |
void |
write(int b)
Perform a blocking write of one byte to this output stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
NonblockingSocketOutputStream(NonblockingSocketImpl impl)
Method Detail |
public void write(int b) throws java.io.IOException
write
in class NonblockingOutputStream
java.io.IOException
public void write(byte[] b) throws java.io.IOException
b.length
bytes
to the underlying stream. Use nbWrite() to perform a nonblocking
write.
write
in class NonblockingOutputStream
java.io.IOException
public 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.
write
in class NonblockingOutputStream
java.io.IOException
public int nbWrite(byte b) throws java.io.IOException
nbWrite
in class NonblockingOutputStream
java.io.IOException
public 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.
nbWrite
in class NonblockingOutputStream
java.io.IOException
public 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.
nbWrite
in class NonblockingOutputStream
java.io.IOException
public void flush()
flush
in class NonblockingOutputStream
public void close() throws java.io.IOException
close
in class NonblockingOutputStream
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |