org.apache.camel.util
Class GZIPHelper
java.lang.Object
org.apache.camel.util.GZIPHelper
public final class GZIPHelper
- extends Object
Helper class to help wrapping content into GZIP input and output streams.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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