public class ZipUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
compress(String text)
Deprecated.
use
compressString(String) instead. |
static String |
compressChunks(String text)
The method compresses the big strings using gzip - low memory via the File system
|
static void |
compressString(InputStream inputStream,
OutputStream outputStream)
The method compresses the big strings using gzip - low memory via Streams
|
static String |
compressString(String text) |
static String |
decompress(String text)
Deprecated.
use
decompressString(String) instead. |
static void |
decompressChunks(InputStream inputStream,
Path tempFileOut)
The method decompresses the big strings using gzip - low memory via the File system
|
static Path |
decompressChunks(String text)
The method decompresses the big strings using gzip - low memory via the File system
|
static void |
decompressString(InputStream inputStream,
OutputStream outputStream)
The method decompresses the big strings using gzip - low memory via Streams
|
static String |
decompressString(String text) |
static void |
getBytes(byte[] source,
int srcBegin,
int srcEnd,
byte[] destination,
int dstBegin) |
@Deprecated public static String compress(String text) throws IOException
compressString(String) instead.text - The string to compress.IOException - Does some thing in old style.public static String decompress(String text) throws IOException
decompressString(String) instead.text - The string to decompress.IOException - Does some thing in old style.public static Path decompressChunks(String text) throws IOException
text - The string to decompress.IOExceptionpublic static void decompressChunks(InputStream inputStream, Path tempFileOut) throws IOException
inputStream - tempFileOut - IOExceptionpublic static String compressString(String text) throws IOException
IOExceptionpublic static void compressString(InputStream inputStream, OutputStream outputStream) throws IOException
inputStream - outputStream - IOExceptionpublic static String decompressString(String text) throws IOException
IOExceptionpublic static void decompressString(InputStream inputStream, OutputStream outputStream) throws IOException
inputStream - outputStream - IOExceptionpublic static String compressChunks(String text) throws IOException
text - The string to compress.IOExceptionpublic static void getBytes(byte[] source,
int srcBegin,
int srcEnd,
byte[] destination,
int dstBegin)
Copyright © 2011-2024 White Source. All Rights Reserved.