public class FileResourceLoader extends java.lang.Object implements ResourceLoader
| Constructor and Description |
|---|
FileResourceLoader(java.io.File baseDirectory) |
| 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) |
static FileResourceLoader |
instance() |
java.io.InputStream |
load(java.lang.String path) |
com.google.common.base.Optional<java.net.URL> |
toUrl(java.lang.String path) |
public static FileResourceLoader instance()
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