| java.lang.Object java.io.OutputStream seda.nbio.NonblockingOutputStream seda.nbio.NonblockingSocketOutputStream
NonblockingSocketOutputStream | class NonblockingSocketOutputStream extends NonblockingOutputStream (Code) | | Package-internal class implementing NonblockingOutputStream for
nonblocking sockets.
|
Method Summary | |
public void | close() | public void | flush() flush() does nothing in this implementation. | public int | nbWrite(byte b) Perform a non-blocking write of one byte to this output stream.
Returns 1 if the data was written or 0 if it could not be.
Throws an EOFException if the end of the stream has been reached. | public int | nbWrite(byte b) Perform a nonblocking write of up to b.length bytes
to the underlying stream. | public 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 . | public void | write(int b) Perform a blocking write of one byte to this output stream.
Throws an EOFException if the end of stream has been reached.
Use nbWrite() to perform a non-blocking write of one byte. | public void | write(byte b) Perform a blocking write of b.length bytes
to the underlying stream. | public 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 . |
flush | public void flush()(Code) | | flush() does nothing in this implementation.
|
nbWrite | public int nbWrite(byte b) throws IOException(Code) | | Perform a non-blocking write of one byte to this output stream.
Returns 1 if the data was written or 0 if it could not be.
Throws an EOFException if the end of the stream has been reached.
Use write() to perform a blocking write of one byte.
|
nbWrite | public int nbWrite(byte b) throws IOException(Code) | | Perform a nonblocking write of up to 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 | public int nbWrite(byte b, int off, int len) throws IOException(Code) | | Perform a nonblocking write of up to 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.
|
write | public void write(int b) throws IOException(Code) | | Perform a blocking write of one byte to this output stream.
Throws an EOFException if the end of stream has been reached.
Use nbWrite() to perform a non-blocking write of one byte.
|
write | public void write(byte b) throws IOException(Code) | | Perform a blocking write of b.length bytes
to the underlying stream. Use nbWrite() to perform a nonblocking
write.
|
write | public void write(byte b, int off, int len) throws IOException(Code) | | Perform a blocking write of len bytes to the
underlying stream from the byte array b starting at offset
off . Use nbWrite() to perform a nonblocking write.
|
|
|