Package org.fastnate.data.files
Interface DataFile
- All Known Implementing Classes:
FsDataFile,UrlDataFile,VfsDataFile
public interface DataFile
Represents one file from the class path or the file system which is imported with a
DataProvider.- Author:
- Tobias Liefke
-
Method Details
-
getFolder
DataFolder getFolder()The folder that contains this file.- Returns:
- the folder
-
getName
String getName()The name of this file.- Returns:
- the name of this file
-
open
Opens this file for input. The caller is responsible to close the stream.- Returns:
- the input stream of this file
- Throws:
IOException- if the file is not accessible
-