public class FileReadUtils extends Object
| Constructor and Description |
|---|
FileReadUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
readAllBytes(Path path) |
static String |
readFile(File file,
String charsetName) |
static String |
readFileUtf8(File file) |
public static String readFileUtf8(File file) throws IOException
IOExceptionpublic static String readFile(File file, String charsetName) throws IOException
IOExceptionpublic static byte[] readAllBytes(Path path) throws IOException
IOExceptionCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.