org.spicefactory.cinnamon.config.resource
Interface Resource

All Known Implementing Classes:
AbstractResource, ByteArrayResource, ClassPathResource, FileSystemResource, HttpResource, WebAppResource

public interface Resource

Interface that serves as an abstraction for different resources like files or class path resources.

Author:
Jens Halm

Method Summary
 InputStream getInputStream()
          Creates an InputStream for this Resource.
 String getPath()
          Returns the path for this resource.
 

Method Detail

getPath

String getPath()
Returns the path for this resource.

Returns:
the path for this resource

getInputStream

InputStream getInputStream()
                           throws ResourceException
Creates an InputStream for this Resource.

Returns:
an InputStream for this Resource
Throws:
ResourceException - if the InputStream cannot be created