@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, 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 © 2016 Apache Software Foundation. All rights reserved.