Package org.fastnate.data.files
Class FsDataFile
java.lang.Object
org.fastnate.data.files.FsDataFile
- All Implemented Interfaces:
DataFile
Represents a data file from the file system.
- Author:
- Tobias Liefke
-
Constructor Details
-
FsDataFile
Creates a newFsDataFileinstance.- Parameters:
file- The represented file from the file system.
-
-
Method Details
-
getFolder
Description copied from interface:DataFileThe folder that contains this file. -
getName
Description copied from interface:DataFileThe name of this file. -
open
Description copied from interface:DataFileOpens this file for input. The caller is responsible to close the stream.- Specified by:
openin interfaceDataFile- Returns:
- the input stream of this file
- Throws:
IOException- if the file is not accessible
-
getFile
The represented file from the file system.
-