org.jcrontab.data
Class FileOpener

java.lang.Object
  |
  +--org.jcrontab.data.FileOpener

public class FileOpener
extends java.lang.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.3 $
Author:
$Author: iolalla $

Constructor Summary
FileOpener()
           
 
Method Summary
 java.io.InputStream getInputStream(java.lang.Class cl, java.lang.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 java.io.InputStream getInputStream(java.lang.Class cl,
                                          java.lang.String name)
                                   throws java.lang.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:
java.lang.Exception - the thrown exceptions