Class ReusableStreamGzipCodec.ReusableGzipOutputStream.ResetableGZIPOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.util.zip.DeflaterOutputStream
java.util.zip.GZIPOutputStream
org.apache.hadoop.hbase.io.compress.ReusableStreamGzipCodec.ReusableGzipOutputStream.ResetableGZIPOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Enclosing class:
- ReusableStreamGzipCodec.ReusableGzipOutputStream
private static class ReusableStreamGzipCodec.ReusableGzipOutputStream.ResetableGZIPOutputStream
extends GZIPOutputStream
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final boolean
private static final int
Fields inherited from class java.util.zip.GZIPOutputStream
crc
Fields inherited from class java.util.zip.DeflaterOutputStream
buf, def
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
finish()
Override because certain implementation calls def.end() which causes problem when resetting the stream for reuse.void
private void
writeInt
(int paramInt1, byte[] paramArrayOfByte, int paramInt2) re-implement because the relative method in jdk is invisibleprivate void
writeShort
(int paramInt1, byte[] paramArrayOfByte, int paramInt2) re-implement because the relative method in jdk is invisibleprivate void
writeTrailer
(byte[] paramArrayOfByte, int paramInt) re-implement because the relative method in jdk is invisibleMethods inherited from class java.util.zip.GZIPOutputStream
write
Methods inherited from class java.util.zip.DeflaterOutputStream
close, deflate, flush, write
Methods inherited from class java.io.FilterOutputStream
write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
TRAILER_SIZE
- See Also:
-
HAS_BROKEN_FINISH
-
-
Constructor Details
-
ResetableGZIPOutputStream
- Throws:
IOException
-
-
Method Details
-
resetState
- Throws:
IOException
-
finish
Override because certain implementation calls def.end() which causes problem when resetting the stream for reuse.- Overrides:
finish
in classGZIPOutputStream
- Throws:
IOException
-
writeTrailer
re-implement because the relative method in jdk is invisible- Throws:
IOException
-
writeInt
re-implement because the relative method in jdk is invisible- Throws:
IOException
-
writeShort
re-implement because the relative method in jdk is invisible- Throws:
IOException
-