@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class CompressionOutputStream extends OutputStream
修飾子とタイプ | フィールドと説明 |
---|---|
protected OutputStream |
out
The output stream to be compressed.
|
修飾子 | コンストラクタと説明 |
---|---|
protected |
CompressionOutputStream(OutputStream out)
Create a compression output stream that writes
the compressed bytes to the given stream.
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
close() |
abstract void |
finish()
Finishes writing compressed data to the output stream
without closing the underlying stream.
|
void |
flush() |
abstract void |
resetState()
Reset the compression to the initial state.
|
abstract void |
write(byte[] b,
int off,
int len)
Write compressed bytes to the stream.
|
write, write
protected final OutputStream out
protected CompressionOutputStream(OutputStream out)
out
- public void close() throws IOException
close
インタフェース内 Closeable
close
インタフェース内 AutoCloseable
close
クラス内 OutputStream
IOException
public void flush() throws IOException
flush
インタフェース内 Flushable
flush
クラス内 OutputStream
IOException
public abstract void write(byte[] b, int off, int len) throws IOException
write
クラス内 OutputStream
IOException
public abstract void finish() throws IOException
IOException
public abstract void resetState() throws IOException
IOException
Copyright © 2016 Apache Software Foundation. All rights reserved.