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, seekToNewSource
read
protected Decompressor decompressor
protected byte[] buffer
protected boolean eof
protected boolean closed
public DecompressorStream(InputStream in, Decompressor decompressor, int bufferSize) throws IOException
IOException
public DecompressorStream(InputStream in, Decompressor decompressor) throws IOException
IOException
protected DecompressorStream(InputStream in) throws IOException
in
- Underlying input stream.IOException
public int read() throws IOException
read
在类中 InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
CompressionInputStream
read
在类中 CompressionInputStream
IOException
protected int decompress(byte[] b, int off, int len) throws IOException
IOException
protected int getCompressedData() throws IOException
IOException
protected void checkStream() throws IOException
IOException
public void resetState() throws IOException
CompressionInputStream
resetState
在类中 CompressionInputStream
IOException
public long skip(long n) throws IOException
skip
在类中 InputStream
IOException
public int available() throws IOException
available
在类中 InputStream
IOException
public void close() throws IOException
close
在接口中 Closeable
close
在接口中 AutoCloseable
close
在类中 CompressionInputStream
IOException
public boolean markSupported()
markSupported
在类中 InputStream
public void mark(int readlimit)
mark
在类中 InputStream
public void reset() throws IOException
reset
在类中 InputStream
IOException
Copyright © 2009 The Apache Software Foundation