|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.nimbusds.jose.util.DeflateUtils
public class DeflateUtils
Deflate (RFC 1951) utilities.
Method Summary | |
---|---|
static 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). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static byte[] compress(byte[] bytes) throws IOException
bytes
- The byte array to compress. Must not be null
.
IOException
- If compression failed.public static byte[] decompress(byte[] bytes) throws IOException
bytes
- The byte array to decompress. Must not be null
.
IOException
- If decompression failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |