public class ClasspathResourceLoader extends java.lang.Object implements ResourceLoader
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ROOT_PATH |
| Constructor and Description |
|---|
ClasspathResourceLoader(java.lang.ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(java.lang.String path) |
com.google.common.base.Optional<java.nio.charset.Charset> |
getCharset(java.lang.String path) |
java.io.InputStream |
load(java.lang.String path) |
com.google.common.base.Optional<java.net.URL> |
toUrl(java.lang.String path) |
public static final java.lang.String ROOT_PATH
public ClasspathResourceLoader(java.lang.ClassLoader classLoader)
public com.google.common.base.Optional<java.nio.charset.Charset> getCharset(java.lang.String path)
getCharset in interface ResourceLoaderpublic java.io.InputStream load(java.lang.String path)
load in interface ResourceLoaderpublic boolean exists(java.lang.String path)
exists in interface ResourceLoaderpublic com.google.common.base.Optional<java.net.URL> toUrl(java.lang.String path)
toUrl in interface ResourceLoader