|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas_lib.genbase.archive.AbsArchive org.objectweb.jonas_lib.genbase.archive.JarArchive
public class JarArchive
A JarArchive
is a wrapper for jar file.
Constructor Summary | |
---|---|
JarArchive(java.io.File jar)
Creates a new JarArchive object. |
Method Summary | |
---|---|
void |
close()
Close this archive |
java.util.List |
getContainedFiles()
Returns a List of all files contained in this archive. |
java.io.InputStream |
getInputStream(java.lang.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.objectweb.jonas_lib.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(java.io.File jar) throws GenBaseException
jar
- the File corresponding to a JarFile
GenBaseException
- When Manifest cannot be foundMethod Detail |
---|
public java.io.InputStream getInputStream(java.lang.String filename) throws java.io.IOException
filename
- file name source of the InputStream
java.io.IOException
- when InputStream of the filename cannot be found in
the archivepublic java.util.List getContainedFiles()
public boolean isPacked()
public void close()
close
in interface Archive
close
in class AbsArchive
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |