|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.generators.genbase.archive.AbsArchive
org.ow2.jonas.generators.genbase.archive.JarArchive
public class JarArchive
A JarArchive is a wrapper for jar file.
| Constructor Summary | |
|---|---|
JarArchive(File jar)
Creates a new JarArchive object. |
|
| Method Summary | |
|---|---|
void |
close()
Close this archive |
List |
getContainedFiles()
Returns a List of all files contained in this archive. |
InputStream |
getInputStream(String filename)
Returns an InputStream corresponding to the given filename. |
boolean |
isPacked()
Returns true if archive is packed or false if archive is unpacked. |
| Methods inherited from class org.ow2.jonas.generators.genbase.archive.AbsArchive |
|---|
addDirectory, addDirectoryIn, addFile, addFile, addFileIn, getFiles, getI18n, getManifest, getName, getRootFile, setManifest |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JarArchive(File jar)
throws GenBaseException
jar - the File corresponding to a JarFile
GenBaseException - When Manifest cannot be found| Method Detail |
|---|
public InputStream getInputStream(String filename)
throws IOException
filename - file name source of the InputStream
IOException - when InputStream of the filename cannot be found in
the archivepublic List getContainedFiles()
public boolean isPacked()
public void close()
close in interface Archiveclose in class AbsArchive
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||