|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsystem.utils.ClassPathFile
ClassPathFile work with file's class paths.
Constructor Summary | |
ClassPathFile()
Creates ClassPathFile with default Java class path. |
|
ClassPathFile(String classPath)
Constructs a TestCaseLoader. |
Method Summary | |
byte[] |
getFile(String fileName)
Read and return file in byte form. |
String |
getFileAsString(String fileName)
Read and return file in String form. |
String[] |
listFile(String dir)
Read file names include ziped files from directory and class paths set in constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClassPathFile()
public ClassPathFile(String classPath)
Method Detail |
public String getFileAsString(String fileName) throws FileNotFoundException
fileName
- file to read
FileNotFoundException
public byte[] getFile(String fileName) throws FileNotFoundException
fileName
- file to read
FileNotFoundException
public String[] listFile(String dir) throws IOException
dir
- Directory to scan
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |