Closeable
, Flushable
, AutoCloseable
public class ReusableGZIPOutputStream extends ResettableGZIPOutputStream
buf, def
out
Modifier and Type | Method | Description |
---|---|---|
static ReusableGZIPOutputStream |
acquire() |
Pull a cached instance
|
static void |
clearCache() |
Clear the cache.
|
byte[] |
getData() |
pull the contents of the stream written
|
static void |
release(ReusableGZIPOutputStream out) |
Release an instance back into the cache (this will discard any
state)
|
void |
reset() |
clear the data so we can start again afresh
|
void |
setLevel(int level) |
deflate, flush
public static ReusableGZIPOutputStream acquire()
public static void release(ReusableGZIPOutputStream out)
public void reset()
reset
in class ResettableGZIPOutputStream
public void setLevel(int level)
public byte[] getData()
public static void clearCache()