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, writeprotected final OutputStream out
protected CompressionOutputStream(OutputStream out)
out - public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 OutputStreamIOExceptionpublic void flush()
throws IOException
flush 在接口中 Flushableflush 在类中 OutputStreamIOExceptionpublic abstract void write(byte[] b,
int off,
int len)
throws IOException
write 在类中 OutputStreamIOExceptionpublic abstract void finish()
throws IOException
IOExceptionpublic abstract void resetState()
throws IOException
IOExceptionCopyright © 2009 The Apache Software Foundation