public class DeflateUtil extends Object
Constructor and Description |
---|
DeflateUtil() |
Modifier and Type | Method and Description |
---|---|
static InputStream |
decode(byte[] msgToDecode)
DEFLATE decoding
|
static byte[] |
encode(byte[] message)
Apply DEFLATE encoding
|
static byte[] |
encode(String message)
Apply DEFLATE encoding
|
public static byte[] encode(byte[] message) throws IOException
message
- IOException
public static byte[] encode(String message) throws IOException
message
- IOException
public static InputStream decode(byte[] msgToDecode)
msgToDecode
- the message that needs decodingCopyright © 2018 JBoss by Red Hat. All rights reserved.