public override TextReader OpenReader() { return(new StreamReader( _compression == null ? _connection.OpenReader(_identifier) : _compression.GetDecompressor(_connection.OpenReader(_identifier)), _encoding )); }
public XmlReader GetDecompressor(Stream input) { var parser = new XmlParserContext(null, null, null, XmlSpace.Preserve) { Encoding = Encoding }; return(XmlReader.Create(_compressor == null ? input : _compressor.GetDecompressor(input), _readerSettings, parser)); }
public override Stream OpenReader() { return(_compression == null?_connection.OpenReader(_identifier) : _compression.GetDecompressor(_connection.OpenReader(_identifier))); }