class Nokogiri::HTML4::SAX::Parser

def parse_io(io, encoding = "UTF-8")

Parse given +io+
##
def parse_io(io, encoding = "UTF-8")
  check_encoding(encoding)
  @encoding = encoding
  ctx = ParserContext.io(io, ENCODINGS[encoding])
  yield ctx if block_given?
  ctx.parse_with(self)
end