org.apache.camel.util
Class GZIPHelper
java.lang.Object
org.apache.camel.util.GZIPHelper
public final class GZIPHelper
- extends java.lang.Object
Helper class to help wrapping content into GZIP input and output streams.
Method Summary |
static byte[] |
compressGZIP(byte[] data)
|
static java.io.InputStream |
compressGzip(java.lang.String contentEncoding,
byte[] data)
|
static java.io.InputStream |
compressGzip(java.lang.String contentEncoding,
java.io.InputStream in)
|
static boolean |
isGzip(Message message)
|
static boolean |
isGzip(java.lang.String header)
|
static boolean |
isGzip(java.lang.String header,
Exchange exchange)
|
static java.io.InputStream |
uncompressGzip(java.lang.String contentEncoding,
java.io.InputStream in)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
uncompressGzip
public static java.io.InputStream uncompressGzip(java.lang.String contentEncoding,
java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
compressGzip
public static java.io.InputStream compressGzip(java.lang.String contentEncoding,
java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
compressGzip
public static java.io.InputStream compressGzip(java.lang.String contentEncoding,
byte[] data)
throws java.io.IOException
- Throws:
java.io.IOException
compressGZIP
public static byte[] compressGZIP(byte[] data)
throws java.io.IOException
- Throws:
java.io.IOException
isGzip
public static boolean isGzip(Message message)
isGzip
public static boolean isGzip(java.lang.String header,
Exchange exchange)
isGzip
public static boolean isGzip(java.lang.String header)
Apache CAMEL