public class TZip extends Object
Constructor and Description |
---|
TZip() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decodeGZip(byte[] encodeBytes)
GZip 解压缩
|
static void |
decodeGZip(File inputFile,
File outputFile)
GZip 解压文件
|
static byte[] |
decodeZip(byte[] encodeBytes)
Zip 解压缩
|
static byte[] |
Deflater(byte[] sourceBytes)
Inflater 压缩
|
static void |
Deflater(File inputFile,
File outputFile)
Inflater 文件压缩处理
|
static byte[] |
encodeGZip(byte[] sourceBytes)
GZIP 压缩
|
static void |
encodeGZip(File inputFile,
File outputFile)
GZip 文件压缩处理
|
static byte[] |
encodeZip(byte[] sourceBytes)
ZIP 压缩
|
static byte[] |
Inflater(byte[] encodeBytes)
deflater 解压缩
|
static void |
Inflater(File inputFile,
File outputFile)
deflater 解压文件
|
static byte[] |
loadFileFromZip(String zipFilePath,
String filePath)
从 Zip 文件中读取指定的被压缩文件
|
public static byte[] decodeGZip(byte[] encodeBytes) throws IOException
encodeBytes
- 待解压字节IOException
- IO 异常public static void decodeGZip(File inputFile, File outputFile) throws IOException
inputFile
- 源文件outputFile
- 目标文件IOException
- IO异常public static byte[] encodeGZip(byte[] sourceBytes) throws IOException
sourceBytes
- 待压缩字节IOException
- IO 异常public static void encodeGZip(File inputFile, File outputFile) throws IOException
inputFile
- 源文件outputFile
- 目标文件IOException
- IO异常public static byte[] decodeZip(byte[] encodeBytes) throws IOException
encodeBytes
- 待解压字节IOException
- IO 异常public static byte[] encodeZip(byte[] sourceBytes) throws IOException
sourceBytes
- 待压缩字节IOException
- IO 异常public static byte[] loadFileFromZip(String zipFilePath, String filePath) throws IOException
zipFilePath
- zip 文件路径filePath
- zip 文件中压缩文件路径IOException
- IO 异常public static byte[] Inflater(byte[] encodeBytes) throws IOException
encodeBytes
- 待解压字节IOException
- IO 异常public static void Inflater(File inputFile, File outputFile) throws IOException
inputFile
- 源文件outputFile
- 目标文件IOException
- IO异常public static byte[] Deflater(byte[] sourceBytes) throws IOException
sourceBytes
- 待压缩字节IOException
- IO 异常public static void Deflater(File inputFile, File outputFile) throws IOException
inputFile
- 源文件outputFile
- 目标文件IOException
- IO异常Copyright © 2020 Voovan. All rights reserved.