org.spicefactory.cinnamon.config.resource
Class FileSystemResource

java.lang.Object
  extended by org.spicefactory.cinnamon.config.resource.AbstractResource
      extended by org.spicefactory.cinnamon.config.resource.FileSystemResource
All Implemented Interfaces:
Resource

public class FileSystemResource
extends AbstractResource

Resource implementation for file system resources.

Author:
Jens Halm

Constructor Summary
FileSystemResource(String path)
          Creates a new file system resource for the given path.
 
Method Summary
 InputStream getInputStream()
          Creates an InputStream for this Resource.
 
Methods inherited from class org.spicefactory.cinnamon.config.resource.AbstractResource
getPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemResource

public FileSystemResource(String path)
Creates a new file system resource for the given path.

Parameters:
path - the path of the resource (may be relative to the current working directory)
Method Detail

getInputStream

public InputStream getInputStream()
Description copied from interface: Resource
Creates an InputStream for this Resource.

Returns:
an InputStream for this Resource