RarReaderVolume.cs 722 B

1234567891011121314151617181920212223242526
  1. using System.Collections.Generic;
  2. using System.IO;
  3. using SharpCompress.Common.Rar;
  4. using SharpCompress.Common.Rar.Headers;
  5. using SharpCompress.IO;
  6. namespace SharpCompress.Readers.Rar
  7. {
  8. public class RarReaderVolume : RarVolume
  9. {
  10. internal RarReaderVolume(Stream stream, ReaderOptions options)
  11. : base(StreamingMode.Streaming, stream, options)
  12. {
  13. }
  14. internal override RarFilePart CreateFilePart(MarkHeader markHeader, FileHeader fileHeader)
  15. {
  16. return new NonSeekableStreamFilePart(markHeader, fileHeader);
  17. }
  18. internal override IEnumerable<RarFilePart> ReadFileParts()
  19. {
  20. return GetVolumeFileParts();
  21. }
  22. }
  23. }