Main Page | Packages | Class Hierarchy | Compound List | File List | Compound Members

nbio.NonblockingSocketOutputStream Class Reference

Inherits nbio.NonblockingOutputStream.

List of all members.


Detailed Description

Package-internal class implementing NonblockingOutputStream for nonblocking sockets.


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

final int SKIPBUFLEN = 4096


Constructor & Destructor Documentation

nbio.NonblockingSocketOutputStream.NonblockingSocketOutputStream NonblockingSocketImpl  impl  )  [package]
 


Member Function Documentation

void nbio.NonblockingSocketOutputStream.close  )  throws IOException [virtual]
 

Implements nbio.NonblockingOutputStream.

void nbio.NonblockingSocketOutputStream.flush  )  [virtual]
 

flush() does nothing in this implementation.

Implements nbio.NonblockingOutputStream.

native int nbio.NonblockingSocketOutputStream.nbSocketWrite byte  b[],
int  off,
int  len
throws IOException [private]
 

int 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 nbio.NonblockingOutputStream.

int 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 nbio.NonblockingOutputStream.

int 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 nbio.NonblockingOutputStream.

void 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 nbio.NonblockingOutputStream.

void 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 nbio.NonblockingOutputStream.

void 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 nbio.NonblockingOutputStream.


Member Data Documentation

boolean nbio.NonblockingSocketOutputStream.eof [private]
 

NBIOFileDescriptor nbio.NonblockingSocketOutputStream.fd [private]
 

NonblockingSocketImpl nbio.NonblockingSocketOutputStream.impl [private]
 

final int nbio.NonblockingSocketOutputStream.SKIPBUFLEN = 4096 [static, private]
 

byte nbio.NonblockingSocketOutputStream.temp[] = new byte[1] [private]
 


The documentation for this class was generated from the following file:
Generated on Fri Jul 18 21:37:52 2003 for libnbio2-java by doxygen 1.3.2