Class JarFilePath

java.lang.Object
com.iizix.util.JarFilePath

public final class JarFilePath extends Object
Class holding an IJarFile and a path inside the Jar file for the JarClassLoader.
Author:
Christopher Mindus
  • Constructor Details

    • JarFilePath

      public JarFilePath(IJarFile jarFile, String subDirectory)
      Constructor for a JarFile with a subdirectory path.
      Parameters:
      jarFile - The Jar file.
      subDirectory - The subdirectory or null for Jar file root.
      Throws:
      IllegalArgumentException - If the subDirectory is not found in the Jar file.
    • JarFilePath

      public JarFilePath(File directory) throws IOException
      Constructor for a directory on the file system.
      Parameters:
      directory - The instance must be an existing directory.
      Throws:
      IOException - If the instance does not exist or is not a directory.
  • Method Details

    • equals

      public boolean equals(Object o)
      Checks if two objects are equal.
      Overrides:
      equals in class Object
      Returns:
      true if equal, false otherwise.
    • hashCode

      public int hashCode()
      Gets the hash code.
      Overrides:
      hashCode in class Object
      Returns:
      A hash code.