|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas_ws.wsgen.archive.J2EEArchive
Base Class for all J2EE modules (application, ejbjar, client, webapp).
Archive
Field Summary | |
protected Archive |
archive
encapsulated archive |
protected static I18n |
i18n
i18n |
protected static org.objectweb.util.monolog.api.Logger |
logger
logger |
Constructor Summary | |
J2EEArchive(Archive archive)
Creates a new J2EEArchive object. |
Method Summary | |
void |
addDirectory(java.io.File directory)
add the content of the given directory into the root of the archive. |
void |
addDirectoryIn(java.lang.String dirName,
java.io.File directory)
add the content of the given directory into the given directory of the archive. |
void |
addFile(java.io.File file)
add a lonely file into the root directory of the archive. |
void |
addFile(java.io.File file,
java.lang.String name)
add a file into the root directory of the archive with a specified name. |
void |
addFileIn(java.lang.String dirName,
java.io.File file)
add a lonely file into the given directory of the archive. |
java.util.List |
getContainedFiles()
Returns a List of all files contained in this archive. |
abstract java.util.Map |
getDescriptors()
Returns a Map of name to Document for each modified Descriptor of the archive. |
java.io.InputStream |
getInputStream(java.lang.String filename)
Returns an InputStream corresponding to the given filename. |
java.util.jar.Manifest |
getManifest()
Returns the Manifest of the Archive. |
java.lang.String |
getName()
Returns the name of the Archive. |
java.io.File |
getRootFile()
Returns the File corresponding to the root of the archive. |
boolean |
isPacked()
Returns true if archive is packed or false if archive is unpacked. |
abstract boolean |
omit(java.lang.String name)
Returns true if filename must be omitted in the archive. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final I18n i18n
protected static final org.objectweb.util.monolog.api.Logger logger
protected Archive archive
Constructor Detail |
public J2EEArchive(Archive archive)
archive
- Archive containing filesMethod Detail |
public void addDirectory(java.io.File directory)
addDirectory
in interface Archive
directory
- directory to addpublic void addDirectoryIn(java.lang.String dirName, java.io.File directory)
addDirectoryIn
in interface Archive
dirName
- archive directory name.directory
- directory to add.public void addFile(java.io.File file)
addFile
in interface Archive
file
- the file to be added.public void addFile(java.io.File file, java.lang.String name)
addFile
in interface Archive
file
- the file to be added.name
- filenamepublic void addFileIn(java.lang.String dirName, java.io.File file)
addFileIn
in interface Archive
dirName
- archive directory name.file
- the file to be added.public java.io.File getRootFile()
getRootFile
in interface Archive
public java.util.jar.Manifest getManifest()
getManifest
in interface Archive
public java.io.InputStream getInputStream(java.lang.String filename) throws java.io.IOException
getInputStream
in interface Archive
filename
- file name source of the InputStream
java.io.IOException
- When Cannot get InputStream from filenamepublic java.util.List getContainedFiles()
getContainedFiles
in interface Archive
public boolean isPacked()
isPacked
in interface Archive
public java.lang.String getName()
getName
in interface Archive
public abstract java.util.Map getDescriptors()
public abstract boolean omit(java.lang.String name)
name
- filename to be tested
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |