public final class FileUtils extends Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
getBytes(File file) |
static byte[] |
getBytes(File file,
int max_len) |
static String |
getContentsAsString(File file) |
static String |
getContentsAsString(File file,
int max_len) |
static String |
getContentsAsString(File file,
int max_len,
String enc) |
static String |
getContentsAsString(File file,
String enc) |
public static byte[] getBytes(File file, int max_len) throws IOException
IOException
public static byte[] getBytes(File file) throws IOException
IOException
public static String getContentsAsString(File file, String enc) throws IOException, UnsupportedEncodingException
public static String getContentsAsString(File file) throws IOException
IOException
public static String getContentsAsString(File file, int max_len, String enc) throws IOException, UnsupportedEncodingException
public static String getContentsAsString(File file, int max_len) throws IOException
IOException