|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jqurantree.core.resource.ResourceUtil
public class ResourceUtil
Utiltiy class which provides convenience methods for accessing embedded JAR resources.
Method Summary | |
---|---|
static java.lang.String |
getText(java.lang.String resourcePath)
Opens an embedded JAR resource, reads the entire content as text, then closes the resource. |
static java.io.InputStream |
open(java.lang.String resourcePath)
Opens an embedded JAR resource for reading. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.io.InputStream open(java.lang.String resourcePath)
resourcePath
- the full path and name of the resource, e.g. /foo/bar.txt
InputStream
used to read the resource.
JQuranTreeException
- if the resource does not existpublic static java.lang.String getText(java.lang.String resourcePath)
resourcePath
- the full path and name of the resource, e.g. /foo/bar.txt
string
containing the entire text content of the
resource
JQuranTreeException
- if the resource does not exist
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |