Class: XML::Parser::SAXDriver

Inherits:
Object
  • Object
show all
Defined in:
lib/rfeedparser/expat_parser.rb

Overview

FIXME line 5 maps to line 171 in saxdriver.rb. note that there is no return in the original

Instance Method Summary collapse

Instance Method Details

#openInputStream(stream) ⇒ Object



146
147
148
149
150
151
152
153
154
155
156
157
158
# File 'lib/rfeedparser/expat_parser.rb', line 146

def openInputStream(stream)
  if stream.getByteStream
    return stream
  else stream.getSystemId
    url = URL.new(stream.getSystemId)
    if url.scheme == 'file' && url. == 'localhost'
      s = open(url.urlpath)
      stream.setByteStream(s)
      return stream
    end
  end
  return nil
end