Groovy Documentation

org.codenarc.util.io
[Groovy] Interface ResourceFactory


interface ResourceFactory

Defines the interface for factory objects that create/return Resource instances.

This is an internal class and its API is subject to change.

Authors:
Chris Mair
Version:
\$Revision: 212 \$ - \$Date: 2009-08-25 21:20:16 -0400 (Tue, 25 Aug 2009) \$


Method Summary
Resource getResource(String path)

Return a Resource instance suitable for the specified path.

 

Method Detail

getResource

Resource getResource(String path)
Return a Resource instance suitable for the specified path.
throws:
IOException - if an error occurs opening the InputStream
Parameters:
path - - the path to the resource. This may be optionally prefixed by


 

Groovy Documentation