|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.rat.test.utils.Resources
public class Resources
Utility class, which provides static methods for creating test cases.
Method Summary | |
---|---|
static java.io.BufferedReader |
getBufferedResourceReader(java.lang.String pResource)
Locates a resource file in the class path and returns a BufferedReader . |
static java.lang.String |
getResourceDirectory(java.lang.String pResource)
Locates the name of a directory, which contains the given resource file. |
static java.io.File |
getResourceFile(java.lang.String pResource)
Locates a resource file in the class path. |
static java.io.Reader |
getResourceReader(java.lang.String pResource)
Locates a resource file in the class path and returns a Reader . |
static java.io.InputStream |
getResourceStream(java.lang.String pResource)
Locates a resource file in the class path and returns an InputStream . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.io.File getResourceFile(java.lang.String pResource) throws java.io.IOException
java.io.IOException
public static java.io.InputStream getResourceStream(java.lang.String pResource) throws java.io.IOException
InputStream
.
java.io.IOException
public static java.io.Reader getResourceReader(java.lang.String pResource) throws java.io.IOException
Reader
.
java.io.IOException
public static java.io.BufferedReader getBufferedResourceReader(java.lang.String pResource) throws java.io.IOException
BufferedReader
.
java.io.IOException
public static java.lang.String getResourceDirectory(java.lang.String pResource) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |