|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas_ws.wsgen.archive.AbsArchive
An AbsArchive
centralized commonly used methods for Jar and
File support.
Field Summary | |
protected java.util.Map |
files
map between name and files added in the archive |
protected static I18n |
i18n
i18n |
protected java.util.jar.Manifest |
manifest
the archive Manifest |
protected java.io.File |
root
root directory of the archive |
Constructor Summary | |
AbsArchive(java.io.File file)
Create a FileArchive where the root if the given file. |
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.lang.String |
getName()
Returns the name of the Archive. |
java.io.File |
getRootFile()
Returns the File corresponding to the root of the archive. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.jonas_ws.wsgen.archive.Archive |
getContainedFiles, getInputStream, getManifest, isPacked |
Field Detail |
protected static I18n i18n
protected java.io.File root
protected java.util.jar.Manifest manifest
protected java.util.Map files
Constructor Detail |
public AbsArchive(java.io.File file)
file
- the directory base of the archiveMethod 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.lang.String getName()
getName
in interface Archive
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |