public class DeflateUtils extends Object
Modifier and Type | Method and Description |
---|---|
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).
|
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.Copyright © 2018 JBoss by Red Hat. All rights reserved.