@InterfaceAudience.Public @InterfaceStability.Evolving public class CompressorStream extends CompressionOutputStream
修飾子とタイプ | フィールドと説明 |
---|---|
protected byte[] |
buffer |
protected boolean |
closed |
protected Compressor |
compressor |
out
修飾子 | コンストラクタと説明 |
---|---|
protected |
CompressorStream(OutputStream out)
Allow derived classes to directly set the underlying stream.
|
|
CompressorStream(OutputStream out,
Compressor compressor) |
|
CompressorStream(OutputStream out,
Compressor compressor,
int bufferSize) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
close() |
protected void |
compress() |
void |
finish()
Finishes writing compressed data to the output stream
without closing the underlying stream.
|
void |
resetState()
Reset the compression to the initial state.
|
void |
write(byte[] b,
int off,
int len)
Write compressed bytes to the stream.
|
void |
write(int b) |
flush
write
protected Compressor compressor
protected byte[] buffer
protected boolean closed
public CompressorStream(OutputStream out, Compressor compressor, int bufferSize)
public CompressorStream(OutputStream out, Compressor compressor)
protected CompressorStream(OutputStream out)
out
- Underlying output stream.public void write(byte[] b, int off, int len) throws IOException
CompressionOutputStream
write
クラス内 CompressionOutputStream
IOException
protected void compress() throws IOException
IOException
public void finish() throws IOException
CompressionOutputStream
finish
クラス内 CompressionOutputStream
IOException
public void resetState() throws IOException
CompressionOutputStream
resetState
クラス内 CompressionOutputStream
IOException
public void close() throws IOException
close
インタフェース内 Closeable
close
インタフェース内 AutoCloseable
close
クラス内 CompressionOutputStream
IOException
public void write(int b) throws IOException
write
クラス内 OutputStream
IOException
Copyright © 2016 Apache Software Foundation. All rights reserved.