| |
|
| java.lang.Object org.objectweb.jonas_lib.genbase.archive.AbsArchive org.objectweb.jonas_lib.genbase.archive.FileArchive
FileArchive | public class FileArchive extends AbsArchive (Code) | | A FileArchive is a wrapper for directory structured as a jar.
author: Guillaume Sauthier |
Constructor Summary | |
public | FileArchive(File archive) Creates a new FileArchive object. |
Method Summary | |
public List | getContainedFiles() Returns a List of all files contained in this archive. | public InputStream | getInputStream(String filename) Returns an InputStream corresponding to the given filename. | public boolean | isPacked() Returns true if archive is packed or false if archive is unpacked. |
FileArchive | public FileArchive(File archive) throws GenBaseException(Code) | | Creates a new FileArchive object.
Parameters: archive - directory structured as a jar throws: GenBaseException - When manifest cannot be loaded |
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 corersponding to the given filenamecannot be found. |
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. |
|
|
|