public class StringResourceLoader extends java.lang.Object implements ResourceLoader
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 StringResourceLoader |
instance() |
java.io.InputStream |
load(java.lang.String path) |
com.google.common.base.Optional<java.net.URL> |
toUrl(java.lang.String path) |
public static StringResourceLoader instance()
public com.google.common.base.Optional<java.nio.charset.Charset> getCharset(java.lang.String path)
getCharset
in interface ResourceLoader
public java.io.InputStream load(java.lang.String path)
load
in interface ResourceLoader
public boolean exists(java.lang.String path)
exists
in interface ResourceLoader
public com.google.common.base.Optional<java.net.URL> toUrl(java.lang.String path)
toUrl
in interface ResourceLoader