|
|||||||||
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
public abstract class AbsArchive
An AbsArchive
centralized commonly used methods for Jar and
File support.
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. |
void |
close()
close this archive |
java.util.Map |
getFiles()
|
static I18n |
getI18n()
|
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. |
void |
setManifest(java.util.jar.Manifest manifest)
|
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_lib.genbase.archive.Archive |
---|
getContainedFiles, getInputStream, isPacked |
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
public java.util.jar.Manifest getManifest()
Archive
getManifest
in interface Archive
public void setManifest(java.util.jar.Manifest manifest)
manifest
- The manifest to set.public static I18n getI18n()
public java.util.Map getFiles()
public void close()
close
in interface Archive
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |