public abstract class ChunkingInputStream
extends java.io.InputStream
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buffer |
protected java.io.InputStream |
in |
| Constructor and Description |
|---|
ChunkingInputStream() |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
protected int |
fillBufferFromInputStream()
For some reason, when reading from InflaterInputStream, if we ask to
fill a buffer, it will instead only give us a chunk at a time,
even though more data is available, and buffer.length has bee requested
|
protected int |
fillBufferFromInputStream(int offset,
int length) |
protected abstract int |
fillInternalBuffer()
This is only called if bufferAvailable is 0.
|
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int length) |
void |
reset() |
protected void |
setBufferSize(int size) |
protected void |
setInputStream(java.io.InputStream input) |
long |
skip(long n) |
java.lang.String |
toString() |
protected void setInputStream(java.io.InputStream input)
protected void setBufferSize(int size)
protected int fillBufferFromInputStream()
throws java.io.IOException
java.io.IOExceptionprotected int fillBufferFromInputStream(int offset,
int length)
throws java.io.IOException
java.io.IOExceptionprotected abstract int fillInternalBuffer()
throws java.io.IOException
java.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.InputStreampublic void mark(int readlimit)
mark in class java.io.InputStreampublic void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int length)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object