Class DefaultJarFile

All Implemented Interfaces:
FileResource, IOResource, Proxyable, Resource, ClasspathElement, JarFile

public class DefaultJarFile extends DefaultFileResource implements JarFile
A FileResource that represents a Java jar.
  • Constructor Details

  • Method Details

    • createJarFile

      public static <T extends JarFile> T createJarFile(ResourceType<T> type, Path path)
      Creates a jar file.
      Type Parameters:
      T - the generic type
      Parameters:
      type - the type
      path - the path
      Returns:
      the jar file
    • toPath

      public Path toPath()
      Description copied from interface: ClasspathElement
      Return the representation of the element as it must appear on the classpath.
      Specified by:
      toPath in interface ClasspathElement
      Returns:
      the path