| |
|
| java.lang.Object org.objectweb.jonas_lib.genbase.archive.AbsArchive org.objectweb.jonas_lib.genbase.archive.JarArchive
JarArchive | public class JarArchive extends AbsArchive (Code) | | A JarArchive is a wrapper for jar file.
author: Guillaume Sauthier |
Constructor Summary | |
public | JarArchive(File jar) Creates a new JarArchive object. |
JarArchive | public JarArchive(File jar) throws GenBaseException(Code) | | Creates a new JarArchive object.
Parameters: jar - the File corresponding to a JarFile throws: GenBaseException - When Manifest cannot be found |
close | public void close()(Code) | | Close this archive
|
getContainedFiles | public List getContainedFiles()(Code) | | Returns a List of all files contained in this archive. Original files in
jar, added Files are all included as String in this Enumeration.
a List of all files contained in this archive. |
getInputStream | public InputStream getInputStream(String filename) throws IOException(Code) | | Returns an InputStream corresponding to the given filename.
Parameters: filename - file name source of the InputStream the InputStream corresponding to the given filename. throws: IOException - when InputStream of the filename cannot be found inthe archive |
isPacked | public boolean isPacked()(Code) | | Returns true if archive is packed or false if archive is unpacked.
true if archive is packed or false if archive is unpacked. |
|
|
|