no.uio.edd.utils.fileutils
Class FileUtils
java.lang.Object
no.uio.edd.utils.fileutils.FileUtils
public class FileUtils
- extends java.lang.Object
Method Summary |
static void |
copy(java.io.File source,
java.io.File dest)
Fast and simple file copy |
static java.lang.String |
readTextFile(java.lang.String fullPathFilename)
|
static java.lang.String[] |
readTextFileIntoArray(java.lang.String fullPathFilename)
Each line in the text file becomes one record in the array. |
static void |
writeTextFile(java.lang.String path,
java.lang.String contents)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileUtils
public FileUtils()
readTextFile
public static java.lang.String readTextFile(java.lang.String fullPathFilename)
throws java.io.IOException
- Throws:
java.io.IOException
readTextFileIntoArray
public static java.lang.String[] readTextFileIntoArray(java.lang.String fullPathFilename)
throws java.io.IOException
- Each line in the text file becomes one record in the array.
- Parameters:
fullPathFilename
-
- Returns:
-
- Throws:
java.io.IOException
copy
public static void copy(java.io.File source,
java.io.File dest)
throws java.io.IOException
- Fast and simple file copy
- Parameters:
source
- Source filedest
- Destination file
- Throws:
java.io.IOException
writeTextFile
public static void writeTextFile(java.lang.String path,
java.lang.String contents)
throws java.io.IOException
- Throws:
java.io.IOException