org.jwall.web.http.nio
Class CompressionHandler
java.lang.Object
org.jwall.web.http.nio.CompressionHandler
public class CompressionHandler
- extends Object
This is a simple compression-handler that handles gzip-compressed message
payloads. Currently it is limitted to gzip.
- Author:
- Christian Bockermann
MAX_READAHEAD_BUFFER
public static int MAX_READAHEAD_BUFFER
CompressionHandler
public CompressionHandler()
gunzip
public static byte[] gunzip(byte[] data)
throws IOException
- Throws:
IOException
gzip
public static byte[] gzip(byte[] data)
throws IOException
- Throws:
IOException
readUntilEOF
public static byte[] readUntilEOF(InputStream in)
throws IOException
- Throws:
IOException
main
public static void main(String[] args)
- Parameters:
args -
Copyright © 2012 jwall.org. All Rights Reserved.