Class ClasspathUtil


  • public class ClasspathUtil
    extends Object
    User: Eugene.Petrenko Date: 13.02.2007 Time: 18:28:18
    • Constructor Detail

      • ClasspathUtil

        public ClasspathUtil()
    • Method Detail

      • resourceUrlToClasspathEntry

        public static String resourceUrlToClasspathEntry​(String className,
                                                         URL resUrl)
                                                  throws UnsupportedEncodingException
        Converts URL to a resource (i.e. to a class) into the classpath entry on the file system.
        Parameters:
        className - name of the class
        resUrl - this class resource Url
        Returns:
        classpath entry
        Throws:
        UnsupportedEncodingException - in case of exception
      • endsWith

        protected static boolean endsWith​(String str,
                                          String suffix)
      • encodePlusCharacter

        public static String encodePlusCharacter​(String orig)
      • classNameToResourcePath

        public static String classNameToResourcePath​(String className)
      • composeClasspath

        @NotNull
        public static String composeClasspath​(@Nullable
                                              Class[] classFromLibs,
                                              @Nullable
                                              String[] resourcesFromLibs,
                                              @Nullable
                                              Class context)