Class URIHelper
- java.lang.Object
-
- pl.edu.icm.unity.engine.api.files.URIHelper
-
public class URIHelper extends Object
A helper class for parsing uri from string and validating it against used schemes- Author:
- P.Piernik
-
-
Field Summary
Fields Modifier and Type Field Description static Set<String>
SUPPORTED_LOCAL_FILE_SCHEMES
static Set<String>
SUPPORTED_URL_SCHEMES
-
Constructor Summary
Constructors Constructor Description URIHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getPathFromURI(URI uri)
static boolean
isWebReady(String rawURI)
static boolean
isWebReady(URI uri)
static URI
parseURI(String rawURI)
static void
validateURI(URI uri)
-
-
-
Method Detail
-
parseURI
public static URI parseURI(String rawURI) throws IllegalURIException
- Throws:
IllegalURIException
-
validateURI
public static void validateURI(URI uri) throws IllegalURIException
- Throws:
IllegalURIException
-
isWebReady
public static boolean isWebReady(String rawURI)
-
isWebReady
public static boolean isWebReady(URI uri)
-
-