1234567891011121314151617181920212223242526272829 |
- using System.IO;
- using System.Linq;
- using SharpCompress.Common;
- using SharpCompress.Common.Tar;
- namespace SharpCompress.Archives.Tar
- {
- public class TarArchiveEntry : TarEntry, IArchiveEntry
- {
- internal TarArchiveEntry(TarArchive archive, TarFilePart part, CompressionType compressionType)
- : base(part, compressionType)
- {
- Archive = archive;
- }
- public virtual Stream OpenEntryStream()
- {
- return Parts.Single().GetCompressedStream();
- }
- #region IArchiveEntry Members
- public IArchive Archive { get; }
- public bool IsComplete => true;
- #endregion
- }
- }
|