public class FileUtil extends Object
| Constructor and Description |
|---|
FileUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getDotExtension(File receiver) |
static @Nullable String |
getFileContent(File receiver) |
static @Nullable byte[] |
getFileContentBytes(File receiver) |
static @NotNull byte[] |
getFileContentBytesWithExceptions(File receiver) |
static @NotNull String |
getFileContentWithExceptions(File receiver) |
static String |
getNameOnly(File receiver) |
static boolean |
isChildOf(File receiver,
File ancestor) |
static String |
pathSlash(File receiver) |
static File |
plus(File receiver,
String name) |
@NotNull public static @NotNull String getFileContentWithExceptions(File receiver) throws IOException
IOException@Nullable public static @Nullable byte[] getFileContentBytes(File receiver)
@NotNull public static @NotNull byte[] getFileContentBytesWithExceptions(File receiver) throws IOException
IOExceptionCopyright © 2020. All rights reserved.