org.gmetrics.util.io
[Groovy] Class UrlResource
java.lang.Object
org.gmetrics.util.io.UrlResource
- All Implemented Interfaces:
- Resource
class UrlResource
A Resource implementation based on java.net.URL.
This is an internal class and its API is subject to change.
- Authors:
- Chris Mair
- Version:
- \$Revision: 24 \$ - \$Date: 2009-12-10 21:17:05 -0500 (Thu, 10 Dec 2009) \$
Constructor Summary |
UrlResource(String path)
Construct a new FileResource - path:
- - the filesystem path to the file.
|
path
final String path
-
UrlResource
UrlResource(String path)
- Construct a new FileResource
- path:
- - the filesystem path to the file. May be absolute or relative.
getInputStream
InputStream getInputStream()
- Open a FileInputStream on the file
- throws:
- IOException - if an error occurs opening the InputStream
Groovy Documentation