|
||||||||||
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.InflaterOutputStream
net.i2p.i2ptunnel.GunzipOutputStream
class GunzipOutputStream
Gunzip implementation per RFC 1952, reusing java's standard CRC32 and Inflater and InflaterOutputStream implementations. Note that the underlying InflaterOutputStream cannot be reused after close(), so we don't have a Reusable version of this. Modified from net.i2p.util.ResettableGZIPInputStream to use Java 6 InflaterOutputstream
Field Summary |
---|
Fields inherited from class java.util.zip.InflaterOutputStream |
---|
buf, inf |
Fields inherited from class java.io.FilterOutputStream |
---|
out |
Constructor Summary | |
---|---|
GunzipOutputStream(OutputStream uncompressedStream)
Build a new Gunzip stream |
Method Summary | |
---|---|
void |
close()
|
boolean |
getFinished()
Inflater statistic |
long |
getRemaining()
Inflater statistic |
long |
getTotalExpanded()
Inflater statistic |
long |
getTotalRead()
Inflater statistic |
String |
toString()
|
void |
write(byte[] buf)
|
void |
write(byte[] buf,
int off,
int len)
|
void |
write(int b)
|
Methods inherited from class java.util.zip.InflaterOutputStream |
---|
finish, flush |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GunzipOutputStream(OutputStream uncompressedStream) throws IOException
IOException
Method Detail |
---|
public void write(int b) throws IOException
write
in class InflaterOutputStream
IOException
public void write(byte[] buf) throws IOException
write
in class FilterOutputStream
IOException
public void write(byte[] buf, int off, int len) throws IOException
write
in class InflaterOutputStream
IOException
public long getTotalRead()
public long getTotalExpanded()
public long getRemaining()
public boolean getFinished()
public void close() throws IOException
close
in interface Closeable
close
in class InflaterOutputStream
IOException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |