using System.IO; using SharpCompress.Common.SevenZip; namespace SharpCompress.Archives.SevenZip { public class SevenZipArchiveEntry : SevenZipEntry, IArchiveEntry { internal SevenZipArchiveEntry(SevenZipArchive archive, SevenZipFilePart part) : base(part) { Archive = archive; } public Stream OpenEntryStream() { return FilePart.GetCompressedStream(); } public IArchive Archive { get; } public bool IsComplete => true; /// /// This is a 7Zip Anti item /// public bool IsAnti => FilePart.Header.IsAnti; } }