Groovy Documentation

org.codenarc.util.io
Class DefaultResourceFactory

java.lang.Object
  org.codenarc.util.io.DefaultResourceFactory

class DefaultResourceFactory

Default implementation of ResourceFactory.

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

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


Constructor Summary
DefaultResourceFactory()

 
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
 

Constructor Detail

DefaultResourceFactory

DefaultResourceFactory()


 
Method Detail

getResource

Resource getResource(String path)
Return a Resource instance suitable for the specified path.
param:
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:")
throws:
IOException - if an error occurs opening the InputStream


 

Groovy Documentation