using System; using System.Collections.Generic; using SharpCompress.Common; using SharpCompress.Reader; namespace SharpCompress.Archive { internal interface IArchive : IDisposable { event EventHandler> EntryExtractionBegin; event EventHandler> EntryExtractionEnd; event EventHandler CompressedBytesRead; event EventHandler FilePartExtractionBegin; IEnumerable Entries { get; } long TotalSize { 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; } } }