org.apache.commons.compress.archivers
Interface ArchiveEntry

All Known Implementing Classes:
ArArchiveEntry, CpioArchiveEntry, DumpArchiveEntry, JarArchiveEntry, TarArchiveEntry, ZipArchiveEntry

public interface ArchiveEntry

Represents an entry of an archive.


Field Summary
static long SIZE_UNKNOWN
          Special value indicating that the size is unknown
 
Method Summary
 Date getLastModifiedDate()
          The last modified date of the entry.
 String getName()
          The name of the entry in the archive.
 long getSize()
          The (uncompressed) size of the entry.
 boolean isDirectory()
          True if the entry refers to a directory
 

Field Detail

SIZE_UNKNOWN

static final long SIZE_UNKNOWN
Special value indicating that the size is unknown

See Also:
Constant Field Values
Method Detail

getName

String getName()
The name of the entry in the archive. May refer to a file or directory or other item


getSize

long getSize()
The (uncompressed) size of the entry. May be -1 (SIZE_UNKNOWN) if the size is unknown


isDirectory

boolean isDirectory()
True if the entry refers to a directory


getLastModifiedDate

Date getLastModifiedDate()
The last modified date of the entry.

Since:
Apache Commons Compress 1.1


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.