org.redhat.vmtruckloader.util
Class FileUtils

java.lang.Object
  extended by org.redhat.vmtruckloader.util.FileUtils

public final class FileUtils
extends Object

Author:
Romain Pelisse - romain@redhat.com

Method Summary
static Reader constructReaderFromClasspathResource(String filename)
           
static void delete(String outputFilename)
           
static boolean exists(String filename)
           
static String getFileEncoding()
           
static String read(String fileName)
           
static List<String> readLineByLine(File file)
           
static List<String> readLineByLine(String fileName)
           
static void write(String filename, String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

constructReaderFromClasspathResource

public static Reader constructReaderFromClasspathResource(String filename)

getFileEncoding

public static String getFileEncoding()

exists

public static boolean exists(String filename)

write

public static void write(String filename,
                         String text)

read

public static String read(String fileName)

readLineByLine

public static List<String> readLineByLine(File file)

readLineByLine

public static List<String> readLineByLine(String fileName)

delete

public static void delete(String outputFilename)


Copyright © 2013. All Rights Reserved.