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