|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD | |||||||
java.lang.Objectgroovy.org.codenarc.util.io.UrlResource
class UrlResource
A Resource implementation based on java.net.URL.
This is an internal class and its API is subject to change.| Property Summary | |
|---|---|
String |
path
|
| Constructor Summary | |
UrlResource(String path)
Construct a new FileResource |
|
| Method Summary | |
|---|---|
boolean
|
exists()
@return true only if this resource exists and is accessible |
InputStream
|
getInputStream()
Open a FileInputStream on the file |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Property Detail |
|---|
final String path
| Constructor Detail |
|---|
UrlResource(String path)
path - - the filesystem path to the file. May be absolute or relative.
| Method Detail |
|---|
boolean exists()
InputStream getInputStream()
Groovy Documentation