16 using System.Collections.Generic;
25 private readonly Dictionary<string, Stream> _openedStreams =
new Dictionary<string, Stream>(2);
32 public IEnumerable<Stream>
Open(
string source)
34 var stream =
new GZipStream(File.OpenRead(source), CompressionMode.Decompress);
35 _openedStreams.Add(source, stream);
43 public void Close(
string source)
46 if (_openedStreams.TryGetValue(source, out stream))
58 foreach (var keyValuePair
in _openedStreams)
60 keyValuePair.Value.Close();