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 |
crc
buf, def
out
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
|
write
close, deflate, flush, write
write
private static final int TRAILER_SIZE
private static final boolean HAS_BROKEN_FINISH
public ResetableGZIPOutputStream(OutputStream out) throws IOException
IOException
public void resetState() throws IOException
IOException
public void finish() throws IOException
finish
in class GZIPOutputStream
IOException
private void writeTrailer(byte[] paramArrayOfByte, int paramInt) throws IOException
IOException
private void writeInt(int paramInt1, byte[] paramArrayOfByte, int paramInt2) throws IOException
IOException
private void writeShort(int paramInt1, byte[] paramArrayOfByte, int paramInt2) throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.