public interface Resources
extends org.springframework.core.io.ResourceLoader
classpath: prefix, searches for a classpath resource.conf directory using the given location
as relative path. If a file found, uses this file.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getResourceAsStream(java.lang.String location)
Searches for a resource according to the rules explained in
Resources and returns the resource as stream
if found. |
java.lang.String |
getResourceAsString(java.lang.String location)
Searches for a resource according to the rules explained in
Resources and returns the resource as string
if found. |
static final java.lang.String NAME
@Nullable java.io.InputStream getResourceAsStream(java.lang.String location)
Resources and returns the resource as stream
if found. The returned stream should be closed after use.location - resource location@Nullable java.lang.String getResourceAsString(java.lang.String location)
Resources and returns the resource as string
if found.location - resource location