Package org.eclipse.epsilon.common.util
Class UriUtil
- java.lang.Object
-
- org.eclipse.epsilon.common.util.UriUtil
-
public class UriUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
encode(String s, boolean isDirectory)
static URI
fileToUri(File file)
static String
getName(URI uri)
static URI
resolve(String path, URI... relativeTo)
static URI
sanitize(String uriStr)
-
-
-
Method Detail
-
sanitize
public static URI sanitize(String uriStr) throws IllegalArgumentException
- Parameters:
uriStr
-- Returns:
- Throws:
IllegalArgumentException
- Since:
- 1.6
-
resolve
public static URI resolve(String path, URI... relativeTo) throws URISyntaxException
- Throws:
URISyntaxException
-
fileToUri
public static URI fileToUri(File file) throws URISyntaxException
- Throws:
URISyntaxException
-
-