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