private static class ReusableStreamGzipCodec.ReusableGzipOutputStream.ResetableGZIPOutputStream extends GZIPOutputStream
| Modifier and Type | Field and Description |
|---|---|
private static boolean |
HAS_BROKEN_FINISH |
private static int |
TRAILER_SIZE |
crcbuf, defout| Constructor and Description |
|---|
ResetableGZIPOutputStream(OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
finish()
Override because certain implementation calls def.end() which
causes problem when resetting the stream for reuse.
|
void |
resetState() |
private void |
writeInt(int paramInt1,
byte[] paramArrayOfByte,
int paramInt2)
re-implement because the relative method in jdk is invisible
|
private void |
writeShort(int paramInt1,
byte[] paramArrayOfByte,
int paramInt2)
re-implement because the relative method in jdk is invisible
|
private void |
writeTrailer(byte[] paramArrayOfByte,
int paramInt)
re-implement because the relative method in jdk is invisible
|
writeclose, deflate, flush, writewriteprivate static final int TRAILER_SIZE
private static final boolean HAS_BROKEN_FINISH
public ResetableGZIPOutputStream(OutputStream out) throws IOException
IOExceptionpublic void resetState() throws IOException
IOExceptionpublic void finish() throws IOException
finish in class GZIPOutputStreamIOExceptionprivate void writeTrailer(byte[] paramArrayOfByte, int paramInt) throws IOException
IOExceptionprivate void writeInt(int paramInt1, byte[] paramArrayOfByte, int paramInt2) throws IOException
IOExceptionprivate void writeShort(int paramInt1, byte[] paramArrayOfByte, int paramInt2) throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.