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
IOException
public static String readFile(File file, String charsetName) throws IOException
IOException
public static byte[] readAllBytes(Path path) throws IOException
IOException
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.