public class ERXCompressionUtilities extends Object
Constructor and Description |
---|
ERXCompressionUtilities() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
deflateByteArray(byte[] input) |
static String |
deflateString(String source) |
static byte[] |
gunzipByteArray(byte[] input) |
static String |
gunzipByteArrayAsString(byte[] input) |
static String |
gunzipString(String source) |
static byte[] |
gzipByteArray(byte[] input) |
static NSData |
gzipByteArrayAsNSData(byte[] input,
int offset,
int length) |
static NSData |
gzipInputStreamAsNSData(InputStream input,
int length)
Returns an NSData containing the gzipped version of the given input stream.
|
static NSData |
gzipNSDataAsNSData(NSData data) |
static byte[] |
gzipStringAsByteArray(String source) |
static byte[] |
inflateByteArray(byte[] input) |
static String |
inflateString(String source) |
static File |
unzipByteArrayIntoDirectory(byte[] input,
File directory,
boolean overwrite) |
static byte[] |
zipByteArray(byte[] input) |
static byte[] |
zipByteArray(byte[] input,
String zipEntryName) |
public static NSData gzipInputStreamAsNSData(InputStream input, int length)
input
- the input stream to compresslength
- the length of the input streampublic static NSData gzipByteArrayAsNSData(byte[] input, int offset, int length)
public static byte[] gzipByteArray(byte[] input)
public static byte[] gunzipByteArray(byte[] input)
public static String gunzipByteArrayAsString(byte[] input)
public static byte[] gzipStringAsByteArray(String source)
public static byte[] zipByteArray(byte[] input)
public static byte[] zipByteArray(byte[] input, String zipEntryName)
public static File unzipByteArrayIntoDirectory(byte[] input, File directory, boolean overwrite)
public static byte[] deflateByteArray(byte[] input)
public static byte[] inflateByteArray(byte[] input)
Copyright © 2002 – 2024 Project Wonder.