Package rs.baselib.lang
Class JarDescriptor
java.lang.Object
rs.baselib.lang.JarDescriptor
Describes a JAR file
- Author:
- ralph
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the file.getFile()
Returns the file.Returns the jarFile.Returns the manifest.Returns the URL prefix for the JAR.protected void
Sets the file.protected void
setJarFile
(JarFile jarFile) Sets the jarFile.
-
Constructor Details
-
JarDescriptor
Constructor.- Parameters:
file
- the jar file- Throws:
IOException
- when Jar cannot be opened
-
-
Method Details
-
getJarFile
Returns the jarFile.- Returns:
- the jarFile
-
setJarFile
Sets the jarFile.- Parameters:
jarFile
- the jarFile to set
-
getFile
Returns the file.- Returns:
- the file
-
setFile
Sets the file.- Parameters:
file
- the file to set
-
getManifest
Returns the manifest.- Returns:
- the manifest.
- Throws:
IOException
- when Manifest file cannot be opened
-
close
Closes the file.- Throws:
IOException
- when file cannot be closed
-
getUrlPrefix
Returns the URL prefix for the JAR.- Returns:
- URL prefix
- Throws:
IOException
- when file cannot be read
-