Class Jabber::Protocol::REXMLJabberParser
In: lib/jabber4r/protocol.rb
Parent: Object

The REXMLJabberParser uses REXML to parse the incoming XML stream of the Jabber protocol and fires ParsedXMLElements at the Connection instance.

Methods

new   parse  

Attributes

started  [R]  status if the parser is started

Public Class methods

Constructs a parser for the supplied stream (socket input)

stream:[IO] Socket input stream
listener:[Object.receive(ParsedXMLElement)] The listener (usually a Jabber::Protocol::Connection instance

Public Instance methods

Begins parsing the XML stream and does not return until the stream closes.

[Validate]