Groovy Documentation

org.codenarc.util.io
[Groovy] Class UrlResource

java.lang.Object
  org.codenarc.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: 439 \$ - \$Date: 2010-11-08 15:16:30 -0500 (Mon, 08 Nov 2010) \$


Property Summary
String path

 
Constructor Summary
UrlResource(String path)

Construct a new FileResource

 
Method Summary
InputStream getInputStream()

Open a FileInputStream on the file

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Property Detail

path

final String path


 
Constructor Detail

UrlResource

UrlResource(String path)
Construct a new FileResource
Parameters:
path - - the filesystem path to the file. May be absolute or relative.


 
Method Detail

getInputStream

InputStream getInputStream()
Open a FileInputStream on the file
throws:
IOException - if an error occurs opening the InputStream


 

Groovy Documentation