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 Summary

    Modifier and Type
    Method
    Description
    The folder that contains this file.
    The name of this file.
    Opens this file for input.
  • 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

      InputStream open() throws IOException
      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