public class FileUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Optional<Path> |
findFileByName(Path workDir,
String name) |
static Optional<Path> |
getPhysicalPath(Path workDir,
Class<?> clazz) |
static <T> Optional<T> |
readFile(Path file,
Class<T> type,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
static Optional<String> |
readLine(Path file,
int threshold,
int lineCount) |
static String |
removeExtension(String fileName) |
static Optional<Path> |
validatePath(Path path) |
Copyright © 2022. All rights reserved.