|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jabber.jabberbeans.sax.SubHandler | +--org.jabber.jabberbeans.sax.serverside.HandshakeHandler
HandshakeHandler
is responsible for the generation of
Handshake
objects from the server stream.
Field Summary | |
protected java.lang.StringBuffer |
elementChars
stringbuffer for catching the handshake contents. |
Constructor Summary | |
HandshakeHandler()
Creates a new HandshakeHandler instance. |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
This is an exact copy of the characters function in the main handler |
protected void |
startHandler(java.lang.String name,
AttributeList attributes)
Gets called when the underlying engine decides to pass an entity and all sub-entities off to your subhandler. |
protected java.lang.Object |
stopHandler(java.lang.String name)
Stophandler is the same as end element, except that it is called saying that the subhandler is no longer in scope. |
Methods inherited from class org.jabber.jabberbeans.sax.SubHandler |
endDocument, endElement, getHandlerFactory, getSubCount, graftParent, graftSubHandler, handleEndElement, handleStartElement, ignorableWhitespace, processingInstruction, receiveChildData, setChildSubHandler, setDocumentLocator, setHandlerFactory, setParent, setParser, startDocument, startElement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.StringBuffer elementChars
Constructor Detail |
public HandshakeHandler()
HandshakeHandler
instance.
Method Detail |
protected final void startHandler(java.lang.String name, AttributeList attributes) throws SAXException
SubHandler
Upon seeing the element that this subhandler handles, we call this constructor, passing in the attributes.
startHandler
in class SubHandler
name
- name of the element which we are handling.attributes
- list of attributes on this element
SAXException
protected final java.lang.Object stopHandler(java.lang.String name)
SubHandler
stopHandler
in class SubHandler
public void characters(char[] ch, int start, int length) throws SAXException
SubHandler
characters
in interface DocumentHandler
characters
in class SubHandler
ch
- character string detectedstart
- start positionlength
- length of string
SAXException
- thrown on error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |