public class ByteArrayCometIO extends InputStream implements CometIO
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buf |
protected int |
count |
protected int |
initialCapacity |
protected int |
mark |
protected int |
pos |
| Constructor and Description |
|---|
ByteArrayCometIO() |
ByteArrayCometIO(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
InputStream |
getInputStream() |
void |
mark(int readAheadLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
boolean |
readAvailable(InputStream is) |
int |
readFully(InputStream is) |
void |
reset() |
long |
skip(long n) |
readprotected final int initialCapacity
protected byte[] buf
protected int pos
protected int mark
protected int count
public ByteArrayCometIO()
public ByteArrayCometIO(int initialCapacity)
public int readFully(InputStream is) throws IOException
readFully in interface CometIOIOExceptionpublic boolean readAvailable(InputStream is) throws IOException
readAvailable in interface CometIOIOExceptionpublic InputStream getInputStream() throws IOException
getInputStream in interface CometIOIOExceptionpublic int read() throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b, int off, int len)
read in class InputStreampublic long skip(long n)
skip in class InputStreampublic int available()
available in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic void mark(int readAheadLimit)
mark in class InputStreampublic void reset()
reset in class InputStreampublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOException