org.codehaus.plexus.archiver

Interface ArchiveFile.Entry

public static interface ArchiveFile.Entry

Interfave of a archive file entry. An entry may be a file, or directory.
Method Summary
longgetLastModificationTime()
Returns the time of the entries last modification.
StringgetName()
Returns the entries name.
longgetSize()
Returns the entries size.
booleanisDirectory()
Returns, whether the entry is a directory.

Method Detail

getLastModificationTime

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

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

getName

public String getName()
Returns the entries name.

getSize

public long getSize()
Returns the entries size.

Returns: File size; undefined for directories.

isDirectory

public boolean isDirectory()
Returns, whether the entry is a directory.
Copyright © 2001-2009 Codehaus. All Rights Reserved.