Class ResourceUtils


  • @API(status=INTERNAL,
         since="1.12")
    public final class ResourceUtils
    extends java.lang.Object
    Collection of static utility methods for working with resources.
    Since:
    1.3 (originally in org.junit.platform.engine.support.descriptor)
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.net.URI stripQueryComponent​(java.net.URI uri)
      Strip the query component from the supplied URI.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • stripQueryComponent

        public static java.net.URI stripQueryComponent​(java.net.URI uri)
        Strip the query component from the supplied URI.
        Parameters:
        uri - the URI from which to strip the query component
        Returns:
        a new URI with the query component removed, or the original URI unmodified if it does not have a query component
        Since:
        1.3