Class URIHelper
- java.lang.Object
-
- pl.edu.icm.unity.engine.api.files.URIHelper
-
public class URIHelper extends java.lang.ObjectA 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 java.util.Set<java.lang.String>SUPPORTED_LOCAL_FILE_SCHEMESstatic java.util.Set<java.lang.String>SUPPORTED_URL_SCHEMES
-
Constructor Summary
Constructors Constructor Description URIHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetPathFromURI(java.net.URI uri)static booleanisWebReady(java.lang.String rawURI)static booleanisWebReady(java.net.URI uri)static java.net.URIparseURI(java.lang.String rawURI)static voidvalidateURI(java.net.URI uri)
-
-
-
Method Detail
-
parseURI
public static java.net.URI parseURI(java.lang.String rawURI) throws IllegalURIException- Throws:
IllegalURIException
-
validateURI
public static void validateURI(java.net.URI uri) throws IllegalURIException- Throws:
IllegalURIException
-
isWebReady
public static boolean isWebReady(java.lang.String rawURI)
-
isWebReady
public static boolean isWebReady(java.net.URI uri)
-
getPathFromURI
public static java.lang.String getPathFromURI(java.net.URI uri)
-
-