protected static class GzipCodec.GzipOutputStream extends CompressorStream
buffer, closed, compressor
out
限定符 | 构造器和说明 |
---|---|
protected |
GzipCodec.GzipOutputStream(CompressorStream out)
Allow children types to put a different type in here.
|
|
GzipCodec.GzipOutputStream(OutputStream out) |
限定符和类型 | 方法和说明 |
---|---|
void |
close() |
void |
finish()
Finishes writing compressed data to the output stream
without closing the underlying stream.
|
void |
flush() |
void |
resetState()
Reset the compression to the initial state.
|
void |
write(byte[] data,
int offset,
int length)
Write compressed bytes to the stream.
|
void |
write(int b) |
compress
write
public GzipCodec.GzipOutputStream(OutputStream out) throws IOException
IOException
protected GzipCodec.GzipOutputStream(CompressorStream out)
out
- the Deflater stream to usepublic void close() throws IOException
close
在接口中 Closeable
close
在接口中 AutoCloseable
close
在类中 CompressorStream
IOException
public void flush() throws IOException
flush
在接口中 Flushable
flush
在类中 CompressionOutputStream
IOException
public void write(int b) throws IOException
write
在类中 CompressorStream
IOException
public void write(byte[] data, int offset, int length) throws IOException
CompressionOutputStream
write
在类中 CompressorStream
IOException
public void finish() throws IOException
CompressionOutputStream
finish
在类中 CompressorStream
IOException
public void resetState() throws IOException
CompressionOutputStream
resetState
在类中 CompressorStream
IOException
Copyright © 2009 The Apache Software Foundation