org.jwall.web.http.nio
Class CompressionHandler

java.lang.Object
  extended by 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

Field Summary
static int MAX_READAHEAD_BUFFER
           
 
Constructor Summary
CompressionHandler()
           
 
Method Summary
static byte[] gunzip(byte[] data)
           
static byte[] gzip(byte[] data)
           
static void main(String[] args)
           
static byte[] readUntilEOF(InputStream in)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_READAHEAD_BUFFER

public static int MAX_READAHEAD_BUFFER
Constructor Detail

CompressionHandler

public CompressionHandler()
Method Detail

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.