com.atlassian.confluence.importexport.resource
Interface ResourceAccessor

All Known Implementing Classes:
ServletContextResourceAccessor

public interface ResourceAccessor

Simple interface to provide access to a resource.


Method Summary
 java.io.InputStream getResource(java.lang.String resourcePath)
          Returns an InputStream for reading a resource.
 

Method Detail

getResource

java.io.InputStream getResource(java.lang.String resourcePath)
Returns an InputStream for reading a resource. A new input stream is returned for each call to this method.

Parameters:
resourcePath - the relative URL path of the resource. For example: /images/foo.png
Returns:
an InputStream for reading the resource


Copyright © 2003-2010 Atlassian. All Rights Reserved.