Package com.mchange.io
Class FileUtils
java.lang.Object
com.mchange.io.FileUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
static byte[]
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)
-
Method Details
-
getBytes
- Throws:
IOException
-
getBytes
- Throws:
IOException
-
getContentsAsString
public static String getContentsAsString(File file, String enc) throws IOException, UnsupportedEncodingException -
getContentsAsString
- Throws:
IOException
-
getContentsAsString
public static String getContentsAsString(File file, int max_len, String enc) throws IOException, UnsupportedEncodingException -
getContentsAsString
- Throws:
IOException
-