org.jcrontab.data
Class FileOpener
java.lang.Object
org.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 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileOpener
public FileOpener()
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