Fix build_init vcxproj to correctly detect changes in config.h.
[mono.git] / mcs / class / System.IO.Compression / SharpCompress / Archive / Zip / ZipArchiveEntry.cs
1 using System.IO;
2 using System.Linq;
3 using SharpCompress.Common.Zip;
4
5 namespace SharpCompress.Archive.Zip
6 {
7     internal class ZipArchiveEntry : ZipEntry, IArchiveEntry
8     {
9         internal ZipArchiveEntry(ZipArchive archive, SeekableZipFilePart part)
10             : base(part)
11         {
12             Archive = archive;
13         }
14
15         public virtual Stream OpenEntryStream()
16         {
17             return Parts.Single().GetCompressedStream();
18         }
19
20         #region IArchiveEntry Members
21
22         public IArchive Archive { get; private set; }
23
24         public bool IsComplete
25         {
26             get { return true; }
27         }
28
29         #endregion
30
31         public string Comment
32         {
33             get { return (Parts.Single() as SeekableZipFilePart).Comment; }
34         }
35
36         public override string ToString()
37         {
38             return this.Key;
39         }
40     }
41 }