@InterfaceAudience.Public @InterfaceStability.Evolving 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 © 2016 Apache Software Foundation. All rights reserved.