proproxy
Class ProCompressor
java.lang.Object
|
+--proproxy.ProCompressor
- public final class ProCompressor
- extends java.lang.Object
ProCompressor
Contains methods that assist in compressing HTTP responses.
You are free to use this code and to make modifications provided
this notice is retained.
If you found this useful, please add a note of acknowledgement to my
guestbook.
If you would like to report a bug or suggest some improvements,
you are most welcome. I will be happy to help you use this piece of code.
- Version:
- 1.00, 10th Mar, 2000
- Author:
- Tanmay K. Mohapatra
Method Summary |
static byte[] |
compress(byte[] unCompData)
|
static byte[] |
gunzip(byte[] compData)
|
static byte[] |
gzip(byte[] unCompData)
|
static byte[] |
uncompress(byte[] compData)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProCompressor
public ProCompressor()
gzip
public static byte[] gzip(byte[] unCompData)
throws java.io.IOException
gunzip
public static byte[] gunzip(byte[] compData)
throws java.util.zip.DataFormatException,
java.io.IOException
compress
public static byte[] compress(byte[] unCompData)
uncompress
public static byte[] uncompress(byte[] compData)
throws java.util.zip.DataFormatException