stream= (REXML::Parsers::BaseParser)

    # File src/rexml/parsers/baseparser.rb, line 102
                            def stream=( source )
                                    if source.kind_of? String
                                            @source = Source.new(source)
                                    elsif source.kind_of? IO
                                            @source = IOSource.new(source)
                                    elsif source.kind_of? Source
                                            @source = source
                                    else
                                            raise "#{source.type} is not a valid input stream.  It must be \n"+
                                            "either a String, IO, or Source."
                                    end
                                    @closed = nil
                                    @document_status = nil
                                    @tags = []
                                    @stack = []
                                    @entities = []
                            end