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