class UrlResource
A Resource implementation based on java.net.URL.
This is an internal class and its API is subject to change.Constructor and description |
---|
UrlResource
(String path) Construct a new FileResource |
Type Params | Return Type | Name and description |
---|---|---|
|
boolean |
exists() @return true only if this resource exists and is accessible |
|
InputStream |
getInputStream() Open a FileInputStream on the file |
Construct a new FileResource
path
- - the filesystem path to the file. May be absolute or relative.
Open a FileInputStream on the file
Groovy Documentation