com.mchange.io
Class FileUtils

java.lang.Object
  extended by com.mchange.io.FileUtils

public final class FileUtils
extends Object


Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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