java.lang.Object
org.springframework.boot.loader.net.protocol.jar.JarUrl

public final class JarUrl extends Object
Utility class with factory methods that can be used to create JAR URLs.
Since:
3.2.0
Author:
Phillip Webb
  • Method Details

    • create

      public static URL create(File file)
      Create a new jar URL.
      Parameters:
      file - the jar file
      Returns:
      a jar file URL
    • create

      public static URL create(File file, JarEntry nestedEntry)
      Create a new jar URL.
      Parameters:
      file - the jar file
      nestedEntry - the nested entry or null
      Returns:
      a jar file URL
    • create

      public static URL create(File file, String nestedEntryName)
      Create a new jar URL.
      Parameters:
      file - the jar file
      nestedEntryName - the nested entry name or null
      Returns:
      a jar file URL
    • create

      public static URL create(File file, String nestedEntryName, String path)
      Create a new jar URL.
      Parameters:
      file - the jar file
      nestedEntryName - the nested entry name or null
      path - the path within the jar or nested jar
      Returns:
      a jar file URL