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 © 2009 The Apache Software Foundation