AlzArchive
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.zip.IArchive, java.lang.AutoCloseable
public class AlzArchive implements IArchive, AutoCloseable
Represents an ALZ archive file. Use this class to inspect and extract ALZ archives.
Constructors
| Constructor | Description |
|---|---|
| AlzArchive(InputStream stream) | Initializes an ALZ archive from a stream. |
| AlzArchive(InputStream stream, AlzArchiveLoadOptions loadOptions) | Initializes an ALZ archive from a stream using the supplied load options. |
| AlzArchive(String filePath) | Initializes an ALZ archive from a file path. |
| AlzArchive(String filePath, AlzArchiveLoadOptions loadOptions) | Initializes an ALZ archive from a file path using the supplied load options. |
Methods
| Method | Description |
|---|---|
| close() | Releases resources held by this archive. |
| extractToDirectory(String destinationDirectory) | Extracts all files and directories to the supplied directory. |
| getEntries() | Gets the entries constituting this archive. |
| getFileEntries() | Gets entries through the common archive interface. |
| getFormat() | Gets the archive format. |
AlzArchive(InputStream stream)
public AlzArchive(InputStream stream)
Initializes an ALZ archive from a stream.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | java.io.InputStream | ALZ archive stream; it must support reading and seeking |
AlzArchive(InputStream stream, AlzArchiveLoadOptions loadOptions)
public AlzArchive(InputStream stream, AlzArchiveLoadOptions loadOptions)
Initializes an ALZ archive from a stream using the supplied load options.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | java.io.InputStream | ALZ archive stream; it must support reading and seeking |
| loadOptions | AlzArchiveLoadOptions | options used to load the archive |
AlzArchive(String filePath)
public AlzArchive(String filePath)
Initializes an ALZ archive from a file path.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| filePath | java.lang.String | path to an ALZ archive |
AlzArchive(String filePath, AlzArchiveLoadOptions loadOptions)
public AlzArchive(String filePath, AlzArchiveLoadOptions loadOptions)
Initializes an ALZ archive from a file path using the supplied load options.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| filePath | java.lang.String | path to an ALZ archive |
| loadOptions | AlzArchiveLoadOptions | options used to load the archive |
close()
public void close()
Releases resources held by this archive.
extractToDirectory(String destinationDirectory)
public final void extractToDirectory(String destinationDirectory)
Extracts all files and directories to the supplied directory.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| destinationDirectory | java.lang.String | destination directory; it is created when necessary |
getEntries()
public final List<AlzEntry> getEntries()
Gets the entries constituting this archive.
Returns: java.util.List<com.aspose.zip.AlzEntry> - immutable list of ALZ entries
getFileEntries()
public final Iterable<IArchiveFileEntry> getFileEntries()
Gets entries through the common archive interface.
Returns: java.lang.Iterable<com.aspose.zip.IArchiveFileEntry> - archive entries
getFormat()
public final ArchiveFormat getFormat()
Gets the archive format.
Returns: ArchiveFormat - ArchiveFormat.Alz