using System.Collections.Generic; using System.IO; using SharpCompress.Common; using SharpCompress.Common.GZip; namespace SharpCompress.Readers.GZip { public class GZipReader : AbstractReader { internal GZipReader(Stream stream, ReaderOptions options) : base(options, ArchiveType.GZip) { Volume = new GZipVolume(stream, options); } public override GZipVolume Volume { get; } #region Open /// /// Opens a GZipReader for Non-seeking usage with a single volume /// /// /// /// public static GZipReader Open(Stream stream, ReaderOptions options = null) { stream.CheckNotNull("stream"); return new GZipReader(stream, options ?? new ReaderOptions()); } #endregion Open protected override IEnumerable GetEntries(Stream stream) { return GZipEntry.GetEntries(stream, Options); } } }