GZipVolume.cs 567 B

12345678910111213141516171819202122232425
  1. using System.IO;
  2. using SharpCompress.Readers;
  3. namespace SharpCompress.Common.GZip
  4. {
  5. public class GZipVolume : Volume
  6. {
  7. public GZipVolume(Stream stream, ReaderOptions options)
  8. : base(stream, options)
  9. {
  10. }
  11. #if !NO_FILE
  12. public GZipVolume(FileInfo fileInfo, ReaderOptions options)
  13. : base(fileInfo.OpenRead(), options)
  14. {
  15. options.LeaveStreamOpen = false;
  16. }
  17. #endif
  18. public override bool IsFirstVolume => true;
  19. public override bool IsMultiVolume => true;
  20. }
  21. }