|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shindig.common.util.ResourceLoader
public final class ResourceLoader
Handles loading contents from resource and file system files.
| Method Summary | |
|---|---|
static String |
getContent(File file)
|
static String |
getContent(String resource)
Reads the contents of a resource as a string. |
static InputStream |
open(String path)
Opens a given path as either a resource or a file, depending on the path name. |
static InputStream |
openResource(String resource)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static InputStream open(String path)
throws IOException
path -
IOException
public static InputStream openResource(String resource)
throws IOException
resource -
FileNotFoundException
IOException
public static String getContent(String resource)
throws IOException
resource -
IOException
public static String getContent(File file)
throws IOException
file -
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||