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

seda.nbio.NonblockingSocketOutputStream Class Reference

Inherits seda.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

static final int SKIPBUFLEN = 4096


Constructor & Destructor Documentation

seda.nbio.NonblockingSocketOutputStream.NonblockingSocketOutputStream NonblockingSocketImpl  impl  )  [package]
 


Member Function Documentation

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

Implements seda.nbio.NonblockingOutputStream.

void seda.nbio.NonblockingSocketOutputStream.flush  )  [virtual]
 

flush() does nothing in this implementation.

Implements seda.nbio.NonblockingOutputStream.

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.


Member Data Documentation

boolean seda.nbio.NonblockingSocketOutputStream.eof [private]
 

NBIOFileDescriptor seda.nbio.NonblockingSocketOutputStream.fd [private]
 

NonblockingSocketImpl seda.nbio.NonblockingSocketOutputStream.impl [private]
 

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

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


The documentation for this class was generated from the following file:
Generated on Thu May 19 19:44:43 2005 for libnbio2-java by  doxygen 1.4.2