|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.util.zip.DeflaterOutputStream
net.i2p.util.ResettableGZIPOutputStream
net.i2p.util.ReusableGZIPOutputStream
public class ReusableGZIPOutputStream
Provide a cache of reusable GZIP streams, each handling up to 32KB without expansion.
Field Summary |
---|
Fields inherited from class java.util.zip.DeflaterOutputStream |
---|
buf, def |
Fields inherited from class java.io.FilterOutputStream |
---|
out |
Method Summary | |
---|---|
static ReusableGZIPOutputStream |
acquire()
Pull a cached instance |
byte[] |
getData()
pull the contents of the stream written |
static void |
main(java.lang.String[] args)
|
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 |
Methods inherited from class net.i2p.util.ResettableGZIPOutputStream |
---|
close, finish, write, write, write |
Methods inherited from class java.util.zip.DeflaterOutputStream |
---|
deflate |
Methods inherited from class java.io.FilterOutputStream |
---|
flush |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ReusableGZIPOutputStream acquire()
public static void release(ReusableGZIPOutputStream out)
public void reset()
reset
in class ResettableGZIPOutputStream
public byte[] getData()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |