|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
org.tranche.streams.GZIPEncodingStream
public class GZIPEncodingStream
A stream to encode a stream of data in GZIP and outputting to a given output stream.
| Constructor Summary | |
|---|---|
GZIPEncodingStream(java.io.OutputStream out)
|
|
| Method Summary | |
|---|---|
void |
close()
Flush and close the output stream. |
void |
flush()
Flush the output stream. |
BigHash |
getHash()
Get the hash of the file output to the stream. |
void |
write(byte[] b)
Write bytes to the output stream. |
void |
write(byte[] buf,
int off,
int len)
Write to the output stream. |
void |
write(int b)
Write a byte to the output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GZIPEncodingStream(java.io.OutputStream out)
throws java.io.IOException
out -
java.io.IOException| Method Detail |
|---|
public void write(byte[] buf,
int off,
int len)
throws java.io.IOException
Write to the output stream.
write in class java.io.OutputStreambuf - off - len -
java.io.IOException
public void write(byte[] b)
throws java.io.IOException
Write bytes to the output stream.
write in class java.io.OutputStreamb -
java.io.IOException
public void write(int b)
throws java.io.IOException
Write a byte to the output stream.
write in class java.io.OutputStreamb -
java.io.IOExceptionpublic BigHash getHash()
Get the hash of the file output to the stream.
public void close()
throws java.io.IOException
Flush and close the output stream.
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOException
public void flush()
throws java.io.IOException
Flush the output stream.
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||