Groovy Documentation

groovy.org.codenarc.util.io
[Groovy] Class DefaultResourceFactory

java.lang.Object
  groovy.org.codenarc.util.io.DefaultResourceFactory
All Implemented Interfaces:
ResourceFactory

class DefaultResourceFactory

Default implementation of ResourceFactory.

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

Authors:
Chris Mair


Method Summary
Resource getResource(String path)

Return a Resource instance suitable for the specified path.

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

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. Must not be null or empty. This may be optionally prefixed by "classpath:" or any of the valid java.net.URL prefixes (e.g., "file:", "http:")


 

Groovy Documentation