File size: 578 Bytes
fab29d7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;
using System.IO;
using System.IO.Compression;

namespace VersOne.Epub.Environment.Implementation
{
    internal class ZipFileEntry : IZipFileEntry
    {
        private readonly ZipArchiveEntry zipArchiveEntry;

        public ZipFileEntry(ZipArchiveEntry zipArchiveEntry)
        {
            this.zipArchiveEntry = zipArchiveEntry ?? throw new ArgumentNullException(nameof(zipArchiveEntry));
        }

        public long Length => zipArchiveEntry.Length;

        public Stream Open()
        {
            return zipArchiveEntry.Open();
        }
    }
}