class ClassPathResource
A Resource implementation for resources available on the classpath.
This class also provides a staticInputStream getInputStream(String path) convenience method.
This is an internal class and its API is subject to change.
| Constructor and description |
|---|
ClassPathResource
(String path)Construct a new ClassPathResource
|
| Type Params | Return Type | Name and description |
|---|---|---|
|
boolean |
exists()@return true only if this resource exists and is accessible |
|
static InputStream |
getInputStream(String path)Convenience method to open an InputStream on the specified resource path relative the classpath
|
|
InputStream |
getInputStream()Open an InputStream on the classpath resource path |
Construct a new ClassPathResource
Convenience method to open an InputStream on the specified resource path relative the classpath
Open an InputStream on the classpath resource path
Groovy Documentation