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 com.webobjects.foundation.NSData |
gzipByteArrayAsNSData(byte[] input,
int offset,
int length) |
static com.webobjects.foundation.NSData |
gzipInputStreamAsNSData(InputStream input,
int length)
Returns an NSData containing the gzipped version of the given input stream.
|
static com.webobjects.foundation.NSData |
gzipNSDataAsNSData(com.webobjects.foundation.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 com.webobjects.foundation.NSData gzipInputStreamAsNSData(InputStream input, int length)
input
- the input stream to compresslength
- the length of the input streampublic static com.webobjects.foundation.NSData gzipNSDataAsNSData(com.webobjects.foundation.NSData data)
public static com.webobjects.foundation.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 – 2020 Project Wonder.