|
|||||||||
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.FileArchive
public class FileArchive
A FileArchive
is a wrapper for directory structured as a jar.
Constructor Summary | |
---|---|
FileArchive(java.io.File archive)
Creates a new FileArchive object. |
Method Summary | |
---|---|
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, close, 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 FileArchive(java.io.File archive) throws GenBaseException
archive
- directory structured as a jar
GenBaseException
- When manifest cannot be loadedMethod 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 corersponding to the given filename
cannot be found.public java.util.List getContainedFiles()
public boolean isPacked()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |