protected static class GzipCodec.GzipOutputStream extends CompressorStream
buffer, closed, compressorout| 限定符 | 构造器和说明 |
|---|---|
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) |
compresswritepublic GzipCodec.GzipOutputStream(OutputStream out) throws IOException
IOExceptionprotected GzipCodec.GzipOutputStream(CompressorStream out)
out - the Deflater stream to usepublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 CompressorStreamIOExceptionpublic void flush()
throws IOException
flush 在接口中 Flushableflush 在类中 CompressionOutputStreamIOExceptionpublic void write(int b)
throws IOException
write 在类中 CompressorStreamIOExceptionpublic void write(byte[] data,
int offset,
int length)
throws IOException
CompressionOutputStreamwrite 在类中 CompressorStreamIOExceptionpublic void finish()
throws IOException
CompressionOutputStreamfinish 在类中 CompressorStreamIOExceptionpublic void resetState()
throws IOException
CompressionOutputStreamresetState 在类中 CompressorStreamIOExceptionCopyright © 2009 The Apache Software Foundation