using System; using System.Collections.Generic; using SharpCompress.Common; using SharpCompress.Readers; namespace SharpCompress.Archives { public interface IArchive : IDisposable { event EventHandler> EntryExtractionBegin; event EventHandler> EntryExtractionEnd; event EventHandler CompressedBytesRead; event EventHandler FilePartExtractionBegin; IEnumerable Entries { get; } IEnumerable Volumes { get; } ArchiveType Type { get; } /// /// Use this method to extract all entries in an archive in order. /// This is primarily for SOLID Rar Archives or 7Zip Archives as they need to be /// extracted sequentially for the best performance. /// IReader ExtractAllEntries(); /// /// Archive is SOLID (this means the Archive saved bytes by reusing information which helps for archives containing many small files). /// Rar Archives can be SOLID while all 7Zip archives are considered SOLID. /// bool IsSolid { get; } /// /// This checks to see if all the known entries have IsComplete = true /// bool IsComplete { get; } /// /// The total size of the files compressed in the archive. /// long TotalSize { get; } /// /// The total size of the files as uncompressed in the archive. /// long TotalUncompressSize { get; } } }