| java.lang.Object org.objectweb.jonas_lib.genbase.archive.AbsArchive
All known Subclasses: org.objectweb.jonas_lib.genbase.archive.FileArchive, org.objectweb.jonas_lib.genbase.archive.JarArchive,
AbsArchive | abstract public class AbsArchive implements Archive(Code) | | An AbsArchive centralized commonly used methods for Jar and
File support.
author: Guillaume Sauthier |
Constructor Summary | |
public | AbsArchive(File file) Create a FileArchive where the root if the given file. |
AbsArchive | public AbsArchive(File file)(Code) | | Create a FileArchive where the root if the given file.
Parameters: file - the directory base of the archive |
addDirectory | public void addDirectory(File directory)(Code) | | add the content of the given directory into the root of the archive.
Parameters: directory - directory to add |
addDirectoryIn | public void addDirectoryIn(String dirName, File directory)(Code) | | add the content of the given directory into the given directory of the
archive.
Parameters: dirName - archive directory name. Parameters: directory - directory to add. |
addFile | public void addFile(File file)(Code) | | add a lonely file into the root directory of the archive.
Parameters: file - the file to be added. |
addFile | public void addFile(File file, String name)(Code) | | add a file into the root directory of the archive with a specified name.
Parameters: file - the file to be added. Parameters: name - filename |
addFileIn | public void addFileIn(String dirName, File file)(Code) | | add a lonely file into the given directory of the archive.
Parameters: dirName - archive directory name. Parameters: file - the file to be added. |
close | public void close()(Code) | | close this archive
|
getFiles | public Map getFiles()(Code) | | Returns the files. |
getI18n | public static I18n getI18n()(Code) | | Returns the i18n. |
getName | public String getName()(Code) | | Returns the name of the Archive.
the name of the Archive. |
getRootFile | public File getRootFile()(Code) | | Returns the File corresponding to the root of the archive.
the File corresponding to the root of the archive. |
setManifest | public void setManifest(Manifest manifest)(Code) | | Parameters: manifest - The manifest to set. |
|
|