public interface FileLoader
Similar to the Freemarker template engine, this class defines an interface for a Loader that loads file resources from the classpath and the file system
Modifiers | Name | Description |
---|---|---|
class |
FileLoader.ClassPathFileLoader |
|
class |
FileLoader.FileSystemFileLoader |
Type Params | Return Type | Name and description |
---|---|---|
|
public java.nio.file.Path |
getResource(java.lang.String path) |
|
public java.io.InputStream |
getResourceAsStream(java.lang.String path) Get an InputStream from a file location |
|
public java.lang.String |
getResourceContent(java.lang.String path) Get the content of a text file |
Get an InputStream from a file location
path
- The path to the fileGet the content of a text file
path
- The path to the text file