public class DecompressorStream extends CompressionInputStream
| 限定符和类型 | 字段和说明 |
|---|---|
protected byte[] |
buffer |
protected boolean |
closed |
protected Decompressor |
decompressor |
protected boolean |
eof |
in, maxAvailableData| 限定符 | 构造器和说明 |
|---|---|
protected |
DecompressorStream(InputStream in)
Allow derived classes to directly set the underlying stream.
|
|
DecompressorStream(InputStream in,
Decompressor decompressor) |
|
DecompressorStream(InputStream in,
Decompressor decompressor,
int bufferSize) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
available() |
protected void |
checkStream() |
void |
close() |
protected int |
decompress(byte[] b,
int off,
int len) |
protected int |
getCompressedData() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int off,
int len)
Read bytes from the stream.
|
void |
reset() |
void |
resetState()
Reset the decompressor to its initial state and discard any buffered data,
as the underlying stream may have been repositioned.
|
long |
skip(long n) |
getPos, seek, seekToNewSourcereadprotected Decompressor decompressor
protected byte[] buffer
protected boolean eof
protected boolean closed
public DecompressorStream(InputStream in, Decompressor decompressor, int bufferSize) throws IOException
IOExceptionpublic DecompressorStream(InputStream in, Decompressor decompressor) throws IOException
IOExceptionprotected DecompressorStream(InputStream in) throws IOException
in - Underlying input stream.IOExceptionpublic int read()
throws IOException
read 在类中 InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
CompressionInputStreamread 在类中 CompressionInputStreamIOExceptionprotected int decompress(byte[] b,
int off,
int len)
throws IOException
IOExceptionprotected int getCompressedData()
throws IOException
IOExceptionprotected void checkStream()
throws IOException
IOExceptionpublic void resetState()
throws IOException
CompressionInputStreamresetState 在类中 CompressionInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip 在类中 InputStreamIOExceptionpublic int available()
throws IOException
available 在类中 InputStreamIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 CompressionInputStreamIOExceptionpublic boolean markSupported()
markSupported 在类中 InputStreampublic void mark(int readlimit)
mark 在类中 InputStreampublic void reset()
throws IOException
reset 在类中 InputStreamIOExceptionCopyright © 2009 The Apache Software Foundation