org.jcrontab.data
Class FileOpener

java.lang.Object
  extended byorg.jcrontab.data.FileOpener

public class FileOpener
extends Object

This class get an InputStream using the right method, File or getResourceAsStream, The idea of this way of openning files is from Sergey Udalstov

Version:
$Revision: 1.4 $
Author:
$Author: iolalla $

Constructor Summary
FileOpener()
           
 
Method Summary
 InputStream getInputStream(Class cl, String name)
          This method is the reason of this class and basically loads the File with the given method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileOpener

public FileOpener()
Method Detail

getInputStream

public InputStream getInputStream(Class cl,
                                  String name)
                           throws Exception
This method is the reason of this class and basically loads the File with the given method.

Parameters:
name - String the name of the file to load
Returns:
InputStream The inputStream to work with
Throws:
Exception - the thrown exceptions