Package com.iizix.util
Class JarFilePath
- java.lang.Object
- com.iizix.util.JarFilePath
public final class JarFilePath extends java.lang.ObjectClass holding an IJarFile and a path inside the Jar file for the JarClassLoader.- Author:
- Christopher Mindus
Constructor Summary
Constructors Constructor Description JarFilePath(IJarFile jarFile, java.lang.String subDirectory)Constructor for a JarFile with a subdirectory path.JarFilePath(java.io.File directory)Constructor for a directory on the file system.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Checks if two objects are equal.inthashCode()Gets the hash code.
Constructor Detail
JarFilePath
public JarFilePath(IJarFile jarFile, java.lang.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:
java.lang.IllegalArgumentException- If thesubDirectoryis not found in the Jar file.
JarFilePath
public JarFilePath(java.io.File directory) throws java.io.IOExceptionConstructor for a directory on the file system.- Parameters:
directory- The instance must be an existing directory.- Throws:
java.io.IOException- If the instance does not exist or is not a directory.