org.codehaus.plexus.archiver
Interface ArchiveFile.Entry

All Known Implementing Classes:
TarEntry, ZipEntry
Enclosing interface:
ArchiveFile

public static interface ArchiveFile.Entry

Interfave of a archive file entry. An entry may be a file, or directory.


Method Summary
 long getLastModificationTime()
          Returns the time of the entries last modification.
 java.lang.String getName()
          Returns the entries name.
 long getSize()
          Returns the entries size.
 boolean isDirectory()
          Returns, whether the entry is a directory.
 

Method Detail

getName

public java.lang.String getName()
Returns the entries name.


isDirectory

public boolean isDirectory()
Returns, whether the entry is a directory.


getLastModificationTime

public long getLastModificationTime()
Returns the time of the entries last modification.

Returns:
Modification time, or -1, if unknown.

getSize

public long getSize()
Returns the entries size.

Returns:
File size; undefined for directories.


Copyright © 2001-2009 Codehaus. All Rights Reserved.