com.echomine.jabber.parser
Class JabberJAXPParser
java.lang.Object
com.echomine.jabber.parser.JabberJAXPParser
- All Implemented Interfaces:
- JabberSAXParser
public class JabberJAXPParser
- extends java.lang.Object
- implements JabberSAXParser
This class uses the JAXP parser to parse incoming XML data from Jabber servers. This is good if you want parser
independence, but sometimes using this parser will cause problems if you have another parser already loaded. Most likely
you may not want to use this custom parser class if you are running under a servlet engine since most servlet engines
uses a xml parser already.
Method Summary |
void |
parse(boolean validating,
boolean namespaceAware,
JabberContentHandler contentHandler,
JabberErrorHandler errorHandler,
org.xml.sax.InputSource reader)
this method will create the parser, set the handlers, and run the parser. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JabberJAXPParser
public JabberJAXPParser()
parse
public void parse(boolean validating,
boolean namespaceAware,
JabberContentHandler contentHandler,
JabberErrorHandler errorHandler,
org.xml.sax.InputSource reader)
- this method will create the parser, set the handlers, and run the parser. The method will be run in its own thread so
you don't have to worry about IO Blocking. This InputSource is actually the incoming socket reader
from the Jabber connection.
- Specified by:
parse
in interface JabberSAXParser
Copyright © 2001-2005 Echomine. All Rights Reserved.