Class LhaArchive

LhaArchive class

This class represents LHA (.lzh) archive file.

public class LhaArchive : IArchive

Constructors

NameDescription
LhaArchive(Stream)Initializes a new instance of the LhaArchive class and composes entries list can be extracted from the archive.
LhaArchive(string)Initializes a new instance of the LhaArchive class and composes entries list can be extracted from the archive.

Properties

NameDescription
Directories { get; }Gets directory entries of LhaDirectoryEntry type constituting the archive.
Entries { get; }Gets file entries of LhaArchiveEntry type constituting the archive.

Methods

NameDescription
Dispose()
ExtractToDirectory(string)Extracts all the files and directories in the archive to the directory provided.

Remarks

Only following compression methods are supported:

Method

Explanation

lh0

Uncompressed

lh4

8 KiB sliding dictionary and static Huffman

lh5

16 KiB sliding dictionary and static Huffman

lh6

64 KiB sliding dictionary and static Huffman

lh7

128 KiB sliding dictionary and static Huffman

lhx

1 Mib sliding dictionary and static Huffman

lhd

Directory

See Also