org.apache.camel.util
Class GZIPHelper

java.lang.Object
  extended by org.apache.camel.util.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 InputStream compressGzip(String contentEncoding, byte[] data)
           
static InputStream compressGzip(String contentEncoding, InputStream in)
           
static boolean isGzip(Message message)
           
static boolean isGzip(String header)
           
static boolean isGzip(String header, Exchange exchange)
           
static InputStream uncompressGzip(String contentEncoding, InputStream in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

uncompressGzip

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

compressGzip

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

compressGzip

public static InputStream compressGzip(String contentEncoding,
                                       byte[] data)
                                throws IOException
Throws:
IOException

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,
                             Exchange exchange)

isGzip

public static boolean isGzip(String header)


Apache CAMEL