public class FileKit extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
delete(File file) |
static boolean |
delete(Path path) |
static boolean |
delete(String file) |
static boolean |
exists(Path file) |
static boolean |
exists(String path) |
static String |
extension(Path path) |
static String |
extension(String fileName) |
static Path |
mkdirs(Path path) |
static Path |
mkdirs(String path) |
static Path |
move(Path from,
Path to) |
static String |
probeContentType(Path path) |
static EnoaBinary |
read(Path path) |
static EnoaBinary |
read(Path path,
Charset charset) |
static void |
write(Path path,
ByteBuffer bytes) |
public static boolean delete(String file)
public static boolean delete(Path path)
public static boolean delete(File file)
public static boolean exists(String path)
public static boolean exists(Path file)
public static void write(Path path, ByteBuffer bytes)
public static EnoaBinary read(Path path)
public static EnoaBinary read(Path path, Charset charset)
Copyright © 2019. All rights reserved.