public class ApexGzipHelper extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
ApexGzipHelper() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
compress(String someString)
Deprecated.
Prefer .deflate
|
static byte[] |
deflate(String someString) |
static String |
inflate(byte[] inflated) |
static boolean |
isGZIPStream(byte[] bytes) |
static String |
toStringCompressed(byte[] bytes) |
static String |
toStringOptCompressed(byte[] bytes)
This is able to handle byte arrays, would it hold the compressed String, or just plain data
|
public static boolean isGZIPStream(byte[] bytes)
bytes - public static String toStringOptCompressed(byte[] bytes) throws IOException
bytes - IOExceptionpublic static String toStringCompressed(byte[] bytes) throws IOException
IOException@Deprecated public static byte[] compress(String someString) throws IOException
IOExceptionpublic static byte[] deflate(String someString) throws IOException
IOExceptionpublic static String inflate(byte[] inflated) throws IOException
IOExceptionCopyright © 2014–2017 Pivotal Software, Inc.. All rights reserved.