Class DeflateUtils
java.lang.Object
org.jboss.resteasy.jose.jwe.crypto.DeflateUtils
Deflate (RFC 1951) utilities.
- Version:
- $version$ (2013-04-16)
- Author:
- Vladimir Dzhuvinov
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
compress
(byte[] bytes) Compresses the specified byte array according to the DEFLATE specification (RFC 1951).static byte[]
decompress
(byte[] bytes) Decompresses the specified byte array according to the DEFLATE specification (RFC 1951).
-
Method Details
-
compress
Compresses the specified byte array according to the DEFLATE specification (RFC 1951).- Parameters:
bytes
- The byte array to compress. Must not benull
.- Returns:
- The compressed bytes.
- Throws:
IOException
- If compression failed.
-
decompress
Decompresses the specified byte array according to the DEFLATE specification (RFC 1951).- Parameters:
bytes
- The byte array to decompress. Must not benull
.- Returns:
- The decompressed bytes.
- Throws:
IOException
- If decompression failed.
-