org.apache.camel.component.http.helper
Class GZIPHelper

java.lang.Object
  extended by org.apache.camel.component.http.helper.GZIPHelper

public final class GZIPHelper
extends Object

Helper class to help wrapping content into GZIP input and output streams.


Method Summary
static byte[] compressGZIP(byte[] data)
           
static boolean isGzip(Message message)
           
static boolean isGzip(String header)
           
static InputStream toGZIPInputStream(String contentEncoding, byte[] data)
           
static InputStream toGZIPInputStream(String contentEncoding, InputStream in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toGZIPInputStream

public static InputStream toGZIPInputStream(String contentEncoding,
                                            InputStream in)
                                     throws IOException
Throws:
IOException

toGZIPInputStream

public static InputStream toGZIPInputStream(String contentEncoding,
                                            byte[] data)
                                     throws Exception
Throws:
Exception

compressGZIP

public static byte[] compressGZIP(byte[] data)
                           throws IOException
Throws:
IOException

isGzip

public static boolean isGzip(Message message)

isGzip

public static boolean isGzip(String header)


Apache CAMEL