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

The ExpatJabberParser uses XMLParser (expat) to parse the incoming XML stream of the Jabber protocol and fires ParsedXMLElements at the Connection instance.

Methods

default, gets, new, parse, unknownEncoding,
Attributes

 [R]  :started

status if the parser is started

Public Class methods
new(stream, listener) src

Constructs a parser for the supplied stream (socket input)

stream:[IO] Socket input stream
listener:[receive(ParsedXMLElement)] The listener (usually a Jabber::Protocol::Connection instance
gets() src
unknownEncoding(e) src
default() src
Public Instance methods
parse() src

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