public class FileUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static char[] |
POSSIBLE_CSV_SEPARATORS |
| Modifier and Type | Method and Description |
|---|---|
static void |
deleteTmpFile(Path path) |
static char |
detectSeparator(Collection<String> lines) |
static char |
detectSeparator(Path file,
Charset charset) |
static Path |
getFile(Path file) |
static Path |
getFile(Path file,
Supplier<Path> fallback) |
static Path |
getFile(String file) |
static long[] |
getPopularElement(Long[] array) |
static Path |
getResourceFile(Path file) |
static List<String> |
readAllLines(Path file,
Charset charset,
int limit) |
static <T> T |
validateInputStream(T input,
Supplier<Path> file) |
public static char detectSeparator(Collection<String> lines)
public static long[] getPopularElement(Long[] array)
public static void deleteTmpFile(Path path)
Copyright © 2023. All rights reserved.