Class JarDescriptor

java.lang.Object
rs.baselib.lang.JarDescriptor

public class JarDescriptor extends Object
Describes a JAR file
Author:
ralph
  • Constructor Details

    • JarDescriptor

      public JarDescriptor(File file) throws IOException
      Constructor.
      Parameters:
      file - the jar file
      Throws:
      IOException - when Jar cannot be opened
  • Method Details

    • getJarFile

      public JarFile getJarFile()
      Returns the jarFile.
      Returns:
      the jarFile
    • setJarFile

      protected void setJarFile(JarFile jarFile)
      Sets the jarFile.
      Parameters:
      jarFile - the jarFile to set
    • getFile

      public File getFile()
      Returns the file.
      Returns:
      the file
    • setFile

      protected void setFile(File file)
      Sets the file.
      Parameters:
      file - the file to set
    • getManifest

      public Manifest getManifest() throws IOException
      Returns the manifest.
      Returns:
      the manifest.
      Throws:
      IOException - when Manifest file cannot be opened
    • close

      public void close() throws IOException
      Closes the file.
      Throws:
      IOException - when file cannot be closed
    • getUrlPrefix

      public String getUrlPrefix() throws IOException
      Returns the URL prefix for the JAR.
      Returns:
      URL prefix
      Throws:
      IOException - when file cannot be read