BloomTests.Publish.ExportEpubTests.GetZipContent C# (CSharp) Method

GetZipContent() private method

private GetZipContent ( ZipFile zip, string path ) : string
zip ICSharpCode.SharpZipLib.Zip.ZipFile
path string
return string
        private string GetZipContent(ZipFile zip, string path)
        {
            var entry = GetZipEntry(zip, path);
            var buffer = new byte[entry.Size];
            var stream = zip.GetInputStream(entry);
            stream.Read(buffer, 0, (int) entry.Size);
            return Encoding.UTF8.GetString(buffer);
        }