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

ConstructorDescription
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

MethodDescription
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:

ParameterTypeDescription
streamjava.io.InputStreamALZ 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:

ParameterTypeDescription
streamjava.io.InputStreamALZ archive stream; it must support reading and seeking
loadOptionsAlzArchiveLoadOptionsoptions used to load the archive

AlzArchive(String filePath)

public AlzArchive(String filePath)

Initializes an ALZ archive from a file path.

Parameters:

ParameterTypeDescription
filePathjava.lang.Stringpath 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:

ParameterTypeDescription
filePathjava.lang.Stringpath to an ALZ archive
loadOptionsAlzArchiveLoadOptionsoptions 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:

ParameterTypeDescription
destinationDirectoryjava.lang.Stringdestination 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