|
QuickServer v1.4.5 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
org.quickserver.util.io.ByteBufferOutputStream
This is an OutputStream constructed from list of ByteBuffers. This is used in non-blocking mode.
Constructor Summary | |
ByteBufferOutputStream(java.util.ArrayList bufferList,
ClientHandler handler)
Creates a new ByteBufferOutputStream using the given list as its base and ClientHandler as the target channel. |
Method Summary | |
void |
close()
|
void |
flush()
|
static void |
setDebug(boolean flag)
Sets the debug flag. |
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ByteBufferOutputStream(java.util.ArrayList bufferList, ClientHandler handler)
Method Detail |
public static void setDebug(boolean flag)
true
one can see number of bytes written.
public void close() throws java.io.IOException
java.io.IOException
public void flush() throws java.io.IOException
java.io.IOException
public void write(int b) throws java.io.IOException
java.io.IOException
public void write(byte[] b) throws java.io.IOException
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
java.io.IOException
|
QuickServer v1.4.5 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |