|
QuickServer v1.4.5 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.quickserver.util.io.ByteBufferInputStream
This is an InputStream constructed from list of ByteBuffers. This is used in non-blocking mode.
Constructor Summary | |
ByteBufferInputStream(java.util.ArrayList bufferList,
ClientHandler handler,
java.lang.String charset)
|
Method Summary | |
int |
available()
|
void |
close()
|
void |
dumpContent()
|
boolean |
isLineReady()
Checks if a line of String is ready to be read. |
boolean |
markSupported()
|
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
java.lang.String |
readLine()
Reads a line of String if ready. |
static void |
setDebug(boolean flag)
Sets the debug flag. |
long |
skip(long n)
|
Methods inherited from class java.io.InputStream |
mark, reset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ByteBufferInputStream(java.util.ArrayList bufferList, ClientHandler handler, java.lang.String charset)
Method Detail |
public static void setDebug(boolean flag)
public int available()
public void close() throws java.io.IOException
java.io.IOException
public boolean markSupported()
public int read() throws java.io.IOException
java.io.IOException
public int read(byte[] b) throws java.io.IOException
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
java.io.IOException
public long skip(long n) throws java.io.IOException
java.io.IOException
public boolean isLineReady() throws java.io.IOException
java.io.IOException
- if connection is lost or closed.public java.lang.String readLine() throws java.io.IOException
isLineReady()
java.io.IOException
isLineReady()
public void dumpContent()
|
QuickServer v1.4.5 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |