Package org.eclipse.lemminx.utils
Class URIUtils
java.lang.Object
org.eclipse.lemminx.utils.URIUtils
URIUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisFileResource(String resourceURI) Returnstrueif the given URL is a file resource,falseotherwise.static StringsanitizingUri(String uri) Returns a well folder URI which ends with '/' according the URI specification https://tools.ietf.org/html/rfc3986#section-6 which is used with Xerces XMLEntityManager#expandSystemId
-
Method Details
-
isFileResource
Returnstrueif the given URL is a file resource,falseotherwise.- Parameters:
resourceURI-- Returns:
trueif the given URL is a file resource, false otherwise.
-
sanitizingUri
Returns a well folder URI which ends with '/' according the URI specification https://tools.ietf.org/html/rfc3986#section-6 which is used with Xerces XMLEntityManager#expandSystemId- Parameters:
uri-- Returns:
- a well folder URI which ends with '/'
-