Package com.hubspot.jinjava.loader
Class FileLocator
- java.lang.Object
-
- com.hubspot.jinjava.loader.FileLocator
-
- All Implemented Interfaces:
ResourceLocator
public class FileLocator extends java.lang.Object implements ResourceLocator
-
-
Constructor Summary
Constructors Constructor Description FileLocator()
initializes the locator with the base dir for relative paths set to the current working dirFileLocator(java.io.File baseDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getString(java.lang.String name, java.nio.charset.Charset encoding, JinjavaInterpreter interpreter)
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.hubspot.jinjava.loader.ResourceLocator
getLocationResolver
-
-
-
-
Method Detail
-
getString
public java.lang.String getString(java.lang.String name, java.nio.charset.Charset encoding, JinjavaInterpreter interpreter) throws java.io.IOException
- Specified by:
getString
in interfaceResourceLocator
- Throws:
java.io.IOException
-
-