Sha256: b5ff4c154b545063698f0db74995c443ccab625bb226d53130b7111ff7771abc

Contents?: true

Size: 568 Bytes

Versions: 33

Compression:

Stored size: 568 Bytes

Contents

module Nokogiri
  module HTML
    module SAX
      class Parser < XML::SAX::Parser
        ###
        # Parse html stored in +data+ using +encoding+
        def parse_memory data, encoding = 'UTF-8'
          native_parse_memory(data, encoding)
        end

        ###
        # Parse a file with +filename+
        def parse_file filename, encoding = 'UTF-8'
          raise Errno::ENOENT unless File.exists?(filename)
          raise Errno::EISDIR if File.directory?(filename)
          native_parse_file filename, encoding
        end
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
tenderlove-nokogiri-0.0.0-x86-mswin32-60 lib/nokogiri/html/sax/parser.rb
tenderlove-nokogiri-0.0.0.20081001111445 lib/nokogiri/html/sax/parser.rb
nokogiri-1.0.0-x86-mswin32-60 lib/nokogiri/html/sax/parser.rb
nokogiri-1.0.0 lib/nokogiri/html/sax/parser.rb
nokogiri-1.0.1 lib/nokogiri/html/sax/parser.rb
nokogiri-1.0.3-x86-mswin32-60 lib/nokogiri/html/sax/parser.rb
nokogiri-1.0.3 lib/nokogiri/html/sax/parser.rb
nokogiri-1.0.5-x86-mswin32-60 lib/nokogiri/html/sax/parser.rb
nokogiri-1.0.4-x86-mswin32-60 lib/nokogiri/html/sax/parser.rb
nokogiri-1.0.4 lib/nokogiri/html/sax/parser.rb
nokogiri-1.0.2 lib/nokogiri/html/sax/parser.rb
nokogiri-1.0.6 lib/nokogiri/html/sax/parser.rb
nokogiri-1.0.5 lib/nokogiri/html/sax/parser.rb
nokogiri-1.0.6-x86-mswin32-60 lib/nokogiri/html/sax/parser.rb
nokogiri-1.0.7 lib/nokogiri/html/sax/parser.rb
nokogiri-1.1.0-x86-mswin32-60 lib/nokogiri/html/sax/parser.rb
nokogiri-1.1.1-java lib/nokogiri/html/sax/parser.rb
nokogiri-1.1.1-x86-mswin32-60 lib/nokogiri/html/sax/parser.rb
nokogiri-1.0.7-x86-mswin32-60 lib/nokogiri/html/sax/parser.rb
nokogiri-1.1.0 lib/nokogiri/html/sax/parser.rb