# File rexml/source.rb, line 141 def match pattern, consume=false rv = super while !rv and @source begin str = @source.read(@block_size) str = utf8_enc(str) if str and @to_utf @buffer << str rv = super rescue @source = nil end end rv end