Table of Contents

Class RarArchive

Namespace
SharpCompress.Archive.Rar
Assembly
SharpCompress.dll
public class RarArchive : AbstractArchive<RarArchiveEntry, RarVolume>, IArchive, IDisposable
Inheritance
RarArchive
Implements
Inherited Members
Extension Methods

Properties

IsSolid

public override bool IsSolid { get; }

Property Value

bool

Methods

CreateReaderForSolidExtraction()

protected override IReader CreateReaderForSolidExtraction()

Returns

IReader

IsRarFile(FileInfo)

public static bool IsRarFile(FileInfo fileInfo)

Parameters

fileInfo FileInfo

Returns

bool

IsRarFile(Stream)

public static bool IsRarFile(Stream stream)

Parameters

stream Stream

Returns

bool

IsRarFile(Stream, Options)

public static bool IsRarFile(Stream stream, Options options)

Parameters

stream Stream
options Options

Returns

bool

IsRarFile(string)

public static bool IsRarFile(string filePath)

Parameters

filePath string

Returns

bool

LoadEntries(IEnumerable<RarVolume>)

protected override IEnumerable<RarArchiveEntry> LoadEntries(IEnumerable<RarVolume> volumes)

Parameters

volumes IEnumerable<RarVolume>

Returns

IEnumerable<RarArchiveEntry>

LoadVolumes(IEnumerable<Stream>, Options)

protected override IEnumerable<RarVolume> LoadVolumes(IEnumerable<Stream> streams, Options options)

Parameters

streams IEnumerable<Stream>
options Options

Returns

IEnumerable<RarVolume>

LoadVolumes(FileInfo, Options)

protected override IEnumerable<RarVolume> LoadVolumes(FileInfo file, Options options)

Parameters

file FileInfo
options Options

Returns

IEnumerable<RarVolume>

Open(IEnumerable<Stream>, Options, string)

public static RarArchive Open(IEnumerable<Stream> streams, Options options = Options.KeepStreamsOpen, string password = null)

Parameters

streams IEnumerable<Stream>
options Options
password string

Returns

RarArchive

Open(FileInfo, Options, string)

public static RarArchive Open(FileInfo fileInfo, Options options = Options.None, string password = null)

Parameters

fileInfo FileInfo
options Options
password string

Returns

RarArchive

Open(Stream, Options, string)

public static RarArchive Open(Stream stream, Options options = Options.KeepStreamsOpen, string password = null)

Parameters

stream Stream
options Options
password string

Returns

RarArchive

Open(string, Options, string)

public static RarArchive Open(string filePath, Options options = Options.None, string password = null)

Parameters

filePath string
options Options
password string

Returns

RarArchive