public class ParallelZipUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
compress(Path dirPath,
OutputStream outputStream,
int poolSize,
int compressionLevel)
Creates a zipped archive from the given path in parallel, streaming the data
to the give output stream.
|
static void |
decompress(Path dirPath,
String backupPath,
int poolSize)
Reads a zipped archive from a path in parallel and writes it to the given path.
|
public static void compress(Path dirPath, OutputStream outputStream, int poolSize, int compressionLevel) throws IOException, InterruptedException
dirPath
- outputStream
- poolSize
- compressionLevel
- IOException
InterruptedException
public static void decompress(Path dirPath, String backupPath, int poolSize) throws IOException
dirPath
- backupPath
- poolSize
- IOException
Copyright © 2023. All Rights Reserved.