Package org.apache.camel.support
Class GZIPHelper
- java.lang.Object
-
- org.apache.camel.support.GZIPHelper
-
public final class GZIPHelper extends Object
Helper class to help wrapping content into GZIP input and output streams.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InputStream
compressGzip(String contentEncoding, byte[] data)
static InputStream
compressGzip(String contentEncoding, InputStream in)
static byte[]
compressGZIP(byte[] data)
static boolean
isGzip(String header)
static boolean
isGzip(String header, org.apache.camel.Exchange exchange)
static boolean
isGzip(org.apache.camel.Message message)
static InputStream
uncompressGzip(String contentEncoding, InputStream in)
-
-
-
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(org.apache.camel.Message message)
-
isGzip
public static boolean isGzip(String header, org.apache.camel.Exchange exchange)
-
isGzip
public static boolean isGzip(String header)
-
-