org.codehaus.plexus.archiver
public class ArchiveEntry extends Object
Version: $Revision: 1502 $ $Date: 2006-08-21 17:05:02 -0400 (Mon, 21 Aug 2006) $
Field Summary | |
---|---|
static int | DIRECTORY |
File | file |
static int | FILE |
int | mode |
String | name |
static String | ROLE |
int | type |
Constructor Summary | |
---|---|
ArchiveEntry(String name, File original, int type, int mode) |
Method Summary | |
---|---|
static ArchiveEntry | createDirectoryEntry(String target, File file, int permissions) |
static ArchiveEntry | createEntry(String target, File file, int filePerm, int dirPerm)
Creates the correct ArchiveEntry instance for either a FILE or a
DIRECTORY.
|
static ArchiveEntry | createFileEntry(String target, File file, int permissions) |
File | getFile() |
int | getMode() |
String | getName() |
int | getType()
TODO: support for SYMLINK?
|
Parameters: name the filename as it will appear in the archive original original filename type FILE or DIRECTORY mode octal unix style permissions
Parameters: target file filePerm dirPerm
Returns: The created entry
Throws: ArchiverException when file is neither a directory nor a file.
Returns: The original file that will be stored in the archive.
Returns: octal user/group/other unix like permissions.
Returns: the filename of this entry in the archive.
Returns: FILE or DIRECTORY