com.mchange.io
Class FileUtils
java.lang.Object
com.mchange.io.FileUtils
public final class FileUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getBytes
public static byte[] getBytes(File file,
int max_len)
throws IOException
- Throws:
IOException
getBytes
public static byte[] getBytes(File file)
throws IOException
- Throws:
IOException
getContentsAsString
public static String getContentsAsString(File file,
String enc)
throws IOException,
UnsupportedEncodingException
- Throws:
IOException
UnsupportedEncodingException
getContentsAsString
public static String getContentsAsString(File file)
throws IOException
- Throws:
IOException
getContentsAsString
public static String getContentsAsString(File file,
int max_len,
String enc)
throws IOException,
UnsupportedEncodingException
- Throws:
IOException
UnsupportedEncodingException
getContentsAsString
public static String getContentsAsString(File file,
int max_len)
throws IOException
- Throws:
IOException