IArchive
All Implemented Interfaces: com.aspose.ms.System.IDisposable
public interface IArchive extends System.IDisposable
This interface represents an archive.
Methods
Method | Description |
---|---|
extractToDirectory(String destinationDirectory) | Extracts all the files in the archive to the directory provided. |
getFileEntries() | Gets entries of IArchiveFileEntry type constituting the archive. |
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:
Parameter | Type | Description |
---|---|---|
destinationDirectory | java.lang.String | The 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.