public class FileHelperUtil
extends Object
Modifier and Type | Field and Description |
---|---|
static Path |
TEMP_DIR_PATH |
Constructor and Description |
---|
FileHelperUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
delete(boolean quiet,
Path... paths) |
static void |
delete(Path... paths) |
static void |
move(Path fromPath,
Path toPath) |
static void |
move(Path fromPath,
Path toPath,
boolean tryAtomicMove) |
static Path |
unzip(Path sourcePath,
Path destDirPath) |
static long |
unzip(ZipInputStream zipInputStream,
Path destPath) |
static Path |
zip(Path sourcePath,
Path destDirPath,
CompressionLevel compressionLevel) |
static long |
zip(Path sourcePath,
ZipOutputStream zipOutputStream) |
public static void delete(boolean quiet, Path... paths)
public static void delete(Path... paths)
public static void move(Path fromPath, Path toPath) throws IOException
IOException
public static void move(Path fromPath, Path toPath, boolean tryAtomicMove) throws IOException
IOException
public static Path unzip(Path sourcePath, Path destDirPath) throws IOException
IOException
public static long unzip(ZipInputStream zipInputStream, Path destPath) throws IOException
IOException
public static Path zip(Path sourcePath, Path destDirPath, CompressionLevel compressionLevel) throws IOException
IOException
public static long zip(Path sourcePath, ZipOutputStream zipOutputStream) throws IOException
IOException