IArchiveEntry.cs 678 B

123456789101112131415161718192021222324
  1. using System.IO;
  2. using SharpCompress.Common;
  3. namespace SharpCompress.Archives
  4. {
  5. public interface IArchiveEntry : IEntry
  6. {
  7. /// <summary>
  8. /// Opens the current entry as a stream that will decompress as it is read.
  9. /// Read the entire stream or use SkipEntry on EntryStream.
  10. /// </summary>
  11. Stream OpenEntryStream();
  12. /// <summary>
  13. /// The archive can find all the parts of the archive needed to extract this entry.
  14. /// </summary>
  15. bool IsComplete { get; }
  16. /// <summary>
  17. /// The archive instance this entry belongs to
  18. /// </summary>
  19. IArchive Archive { get; }
  20. }
  21. }