public class TemplateUtils extends Object
| Constructor and Description |
|---|
TemplateUtils() |
| Modifier and Type | Method and Description |
|---|---|
static URL |
baseUrl(String url) |
static URL |
normaliseFilePathToUrl(String path) |
static String |
readToString(String filename) |
static String |
readToString(URL url) |
public static String readToString(String filename) throws IOException
IOExceptionpublic static String readToString(URL url) throws IOException
IOExceptionpublic static URL baseUrl(String url) throws MalformedURLException
MalformedURLExceptionpublic static URL normaliseFilePathToUrl(String path) throws MalformedURLException, URISyntaxException