Package org.fastnate.data.files
Class VfsDataFile
java.lang.Object
org.fastnate.data.files.VfsDataFile
- All Implemented Interfaces:
DataFile
Represents a file from the class path.
Wraps a
Vfs.File.- Author:
- Tobias Liefke
-
Constructor Summary
ConstructorsConstructorDescriptionVfsDataFile(VfsDataFolder parent, org.reflections.vfs.Vfs.File file) Creates a newVfsDataFileinstance. -
Method Summary
-
Constructor Details
-
VfsDataFile
Creates a newVfsDataFileinstance.- Parameters:
parent- The parent directory.file- The file that is wrapped by this DataFile.
-
-
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
-