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 URL |
normaliseFilePathToUrl(String baseUrl,
String templateName) |
static String |
readToString(String filename) |
static String |
readToString(URL url) |
public static String readToString(String filename) throws IOException
IOException
public static String readToString(URL url) throws IOException
IOException
public static URL baseUrl(String url) throws MalformedURLException
MalformedURLException
public static URL normaliseFilePathToUrl(String path) throws MalformedURLException, URISyntaxException
public static URL normaliseFilePathToUrl(String baseUrl, String templateName) throws MalformedURLException, URISyntaxException
Copyright © 2017. All rights reserved.