com.atlassian.modzdetector
Interface ResourceAccessor


public interface ResourceAccessor

Allows the detector to find the actual items for comparison, either via the filesystem or the classloader.


Method Summary
 java.io.InputStream getResourceByPath(java.lang.String resourceName)
          Gets an InputStream registered by a filesystem path.
 java.io.InputStream getResourceFromClasspath(java.lang.String resourceName)
          Gets an InputStream from the classpath.
 

Method Detail

getResourceByPath

java.io.InputStream getResourceByPath(java.lang.String resourceName)
Gets an InputStream registered by a filesystem path. Caller to close.

Parameters:
resourceName - the name of the resource to load.
Returns:
the stream.

getResourceFromClasspath

java.io.InputStream getResourceFromClasspath(java.lang.String resourceName)
Gets an InputStream from the classpath. The implementer can choose how this is implemented (without exposing a Classloader instance to the caller). Caller to close.

Parameters:
resourceName - the name of the resource to load.
Returns:
the stream.


Copyright © 2011 Atlassian. All Rights Reserved.