|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 archive| Method Detail |
|---|
public void addDirectory(java.io.File directory)
addDirectory in interface Archivedirectory - directory to add
public void addDirectoryIn(java.lang.String dirName,
java.io.File directory)
addDirectoryIn in interface ArchivedirName - archive directory name.directory - directory to add.public void addFile(java.io.File file)
addFile in interface Archivefile - the file to be added.
public void addFile(java.io.File file,
java.lang.String name)
addFile in interface Archivefile - the file to be added.name - filename
public void addFileIn(java.lang.String dirName,
java.io.File file)
addFileIn in interface ArchivedirName - archive directory name.file - the file to be added.public java.io.File getRootFile()
getRootFile in interface Archivepublic java.lang.String getName()
getName in interface Archivepublic java.util.jar.Manifest getManifest()
Archive
getManifest in interface Archivepublic 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 | ||||||||