org.apache.camel.component.http.helper
Class GZIPHelper
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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