|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbodhidharma.utilities.FileMethods
public class FileMethods
A holder class for static methods relating to files.
Constructor Summary | |
---|---|
FileMethods()
|
Method Summary | |
---|---|
static void |
copyFile(java.lang.String original,
java.lang.String destination)
Copies the contents of one file to another. |
static java.lang.String[][] |
tokenizeTabDelFile(java.lang.String tab_del_file)
Reads in a tab delimited text file and converts it into a 2-D String array whose first indice refers to the line number and the second refers to the token (as separated by tabs). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileMethods()
Method Detail |
---|
public static void copyFile(java.lang.String original, java.lang.String destination) throws java.lang.Exception
original
- The name of the file to be copied.destination
- The name of the file to be copied to.
java.lang.Exception
public static java.lang.String[][] tokenizeTabDelFile(java.lang.String tab_del_file) throws java.lang.Exception
tab_del_file
- The path of the text file to convert.
Throws
- an exception if a problem occurs.
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |