public class ZipUtil extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
MIDDLE_COMPRESSION
Compression level for middle compression.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Path |
unzip(InputStream stream,
Path destPath)
unzip file to descPath
|
static Path |
xlsx(Path destPath,
Path... srcPath)
zip files exclude root path
command: zip destPath srcPath1 srcPath2 ...
|
static Path |
zip(Path destPath,
Path... srcPath)
zip files exclude root path
command: zip destPath srcPath1 srcPath2 ...
|
static Path |
zipExcludeRoot(Path destPath,
Path... srcPath)
zip files exclude root path
command: zip destPath srcPath1 srcPath2 ...
|
public static final int MIDDLE_COMPRESSION
public static Path zip(Path destPath, Path... srcPath) throws IOException
destPath - the destination pathsrcPath - the source pathIOException - if error occur.public static Path zipExcludeRoot(Path destPath, Path... srcPath) throws IOException
destPath - the destination pathsrcPath - the source pathIOException - if error occur.public static Path unzip(InputStream stream, Path destPath) throws IOException
stream - the input streamdestPath - the destination pathIOException - if error occur.public static Path xlsx(Path destPath, Path... srcPath) throws IOException
destPath - the destination pathsrcPath - the source pathIOException - if error occur.Copyright © 2022. All rights reserved.