Package com.vaadin.flow.internal
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 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
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
-