Public Member Functions | |
void | write (int b) throws IOException |
Perform a blocking write of one byte to this output stream. | |
void | write (byte b[]) throws IOException |
Perform a blocking write of b.length bytes to the underlying stream. | |
void | write (byte b[], int off, int len) throws IOException |
Perform a blocking write of len bytes to the underlying stream from the byte array b starting at offset off . | |
int | nbWrite (byte b) throws IOException |
Perform a non-blocking write of one byte to this output stream. | |
int | nbWrite (byte b[]) throws IOException |
Perform a nonblocking write of up to b.length bytes to the underlying stream. | |
int | nbWrite (byte b[], int off, int len) throws IOException |
Perform a nonblocking write of up to len bytes to the underlying stream starting at offset off . | |
void | flush () |
flush() does nothing in this implementation. | |
void | close () throws IOException |
Package Functions | |
NonblockingSocketOutputStream (NonblockingSocketImpl impl) | |
Private Member Functions | |
native int | nbSocketWrite (byte b[], int off, int len) throws IOException |
Private Attributes | |
NBIOFileDescriptor | fd |
boolean | eof |
NonblockingSocketImpl | impl |
byte | temp [] = new byte[1] |
Static Private Attributes | |
static final int | SKIPBUFLEN = 4096 |
seda.nbio.NonblockingSocketOutputStream.NonblockingSocketOutputStream | ( | NonblockingSocketImpl | impl | ) | [package] |
void seda.nbio.NonblockingSocketOutputStream.close | ( | ) | throws IOException [virtual] |
Implements seda.nbio.NonblockingOutputStream.
void seda.nbio.NonblockingSocketOutputStream.flush | ( | ) | [virtual] |
native int seda.nbio.NonblockingSocketOutputStream.nbSocketWrite | ( | byte | b[], | |
int | off, | |||
int | len | |||
) | throws IOException [private] |
int seda.nbio.NonblockingSocketOutputStream.nbWrite | ( | byte | b[], | |
int | off, | |||
int | len | |||
) | throws IOException [virtual] |
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.
Implements seda.nbio.NonblockingOutputStream.
int seda.nbio.NonblockingSocketOutputStream.nbWrite | ( | byte | b[] | ) | throws IOException [virtual] |
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.
Implements seda.nbio.NonblockingOutputStream.
int seda.nbio.NonblockingSocketOutputStream.nbWrite | ( | byte | b | ) | throws IOException [virtual] |
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.
Implements seda.nbio.NonblockingOutputStream.
void seda.nbio.NonblockingSocketOutputStream.write | ( | byte | b[], | |
int | off, | |||
int | len | |||
) | throws IOException [virtual] |
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.
Implements seda.nbio.NonblockingOutputStream.
void seda.nbio.NonblockingSocketOutputStream.write | ( | byte | b[] | ) | throws IOException [virtual] |
Perform a blocking write of b.length
bytes to the underlying stream.
Use nbWrite() to perform a nonblocking write.
Implements seda.nbio.NonblockingOutputStream.
void seda.nbio.NonblockingSocketOutputStream.write | ( | int | b | ) | throws IOException [virtual] |
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.
Implements seda.nbio.NonblockingOutputStream.
boolean seda.nbio.NonblockingSocketOutputStream.eof [private] |
final int seda.nbio.NonblockingSocketOutputStream.SKIPBUFLEN = 4096 [static, private] |
byte seda.nbio.NonblockingSocketOutputStream.temp[] = new byte[1] [private] |