IArchive

All Implemented Interfaces: java.lang.AutoCloseable

public interface IArchive extends AutoCloseable

This interface represents an archive.

Methods

MethodDescription
close(){@inheritDoc}
extractToDirectory(String destinationDirectory)Extracts all the files in the archive to the directory provided.
getFileEntries()Gets entries of IArchiveFileEntry type constituting the archive.

close()

public abstract void close()

extractToDirectory(String destinationDirectory)

public abstract void extractToDirectory(String destinationDirectory)

Extracts all the files in the archive to the directory provided.

If the directory does not exist, it will be created.

Parameters:

ParameterTypeDescription
destinationDirectoryjava.lang.StringThe path to the directory to place the extracted files in.

getFileEntries()

public abstract Iterable<IArchiveFileEntry> getFileEntries()

Gets entries of IArchiveFileEntry type constituting the archive.

Archives for compression only, such as gzip, bzip2, lzip, lzma, xz, z consist of the single record - the archive itself.

Returns: java.lang.Iterable<com.aspose.zip.IArchiveFileEntry> - entries of IArchiveFileEntry type constituting the archive.