Interface ResourceFolderUtil.FolderFile

Enclosing class:
ResourceFolderUtil

public static interface ResourceFolderUtil.FolderFile
A file inside a folder on the classpath.

The file can only be read while it is being visited.

  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the location the file is read from, for logging and for telling files of the same name apart.
    Gets the name of the file, without the folder it is in.
    Opens the content of the file.
  • Method Details

    • getName

      String getName()
      Gets the name of the file, without the folder it is in.
      Returns:
      the file name
    • getLocation

      String getLocation()
      Gets the location the file is read from, for logging and for telling files of the same name apart.
      Returns:
      the location of the file
    • open

      InputStream open() throws IOException
      Opens the content of the file.
      Returns:
      the content of the file, to be closed by the caller
      Throws:
      IOException - if the content cannot be read