public class ByteBufferInputStream
extends java.io.InputStream
Constructor and Description |
---|
ByteBufferInputStream(java.util.ArrayList bufferList,
ClientHandler handler,
java.lang.String charset) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
int |
availableOnlyInByteBuffer() |
void |
close() |
void |
dumpContent() |
boolean |
isLineReady()
Checks if a line of String is ready to be read.
|
static boolean |
isLoggable(java.util.logging.Level level) |
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) |
public ByteBufferInputStream(java.util.ArrayList bufferList, ClientHandler handler, java.lang.String charset)
public static void setDebug(boolean flag)
public static boolean isLoggable(java.util.logging.Level level)
public int availableOnlyInByteBuffer()
public int available()
available
in class java.io.InputStream
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.InputStream
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
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()
Copyright © 2003-2014 QuickServer.org