com.caucho.xmpp
Class AbstractXmppMarshal

java.lang.Object
  extended by com.caucho.xmpp.AbstractXmppMarshal
All Implemented Interfaces:
XmppMarshal
Direct Known Subclasses:
XmppAtomEntryMarshal, XmppCapabilitiesMarshal, XmppDataFormMarshal, XmppDiscoInfoQueryMarshal, XmppDiscoItemsQueryMarshal, XmppImBindQueryMarshal, XmppImSessionQueryMarshal, XmppMucAdminQueryMarshal, XmppMucOwnerDestroyQueryMarshal, XmppMucOwnerFormQueryMarshal, XmppMucOwnerQueryMarshal, XmppMucQueryMarshal, XmppMucUserQueryMarshal, XmppPrivateQueryMarshal, XmppPubSubItemsQueryMarshal, XmppPubSubPublishQueryMarshal, XmppPubSubQueryMarshal, XmppPubSubSubscribeQueryMarshal, XmppPubSubUnsubscribeQueryMarshal, XmppRosterQueryMarshal, XmppXmlDataMarshal

public abstract class AbstractXmppMarshal
extends java.lang.Object
implements XmppMarshal

Marshals from an xmpp request to and from a serialized class


Constructor Summary
AbstractXmppMarshal()
           
 
Method Summary
protected  void debug(XMLStreamReader in)
           
protected  void expectEnd(XMLStreamReader in, java.lang.String tagName)
           
protected  void expectEnd(XMLStreamReader in, java.lang.String tagName, int tag)
           
abstract  java.io.Serializable fromXml(XmppStreamReader in)
          Deserializes the object from XML
protected  void skipToEnd(XMLStreamReader in, java.lang.String tagName)
           
 java.lang.String toString()
           
abstract  void toXml(XmppStreamWriter out, java.io.Serializable object)
          Serializes the object to XML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.caucho.xmpp.XmppMarshal
getClassName, getLocalName, getNamespaceURI
 

Constructor Detail

AbstractXmppMarshal

public AbstractXmppMarshal()
Method Detail

toXml

public abstract void toXml(XmppStreamWriter out,
                           java.io.Serializable object)
                    throws java.io.IOException,
                           XMLStreamException
Serializes the object to XML

Specified by:
toXml in interface XmppMarshal
Throws:
java.io.IOException
XMLStreamException

fromXml

public abstract java.io.Serializable fromXml(XmppStreamReader in)
                                      throws java.io.IOException,
                                             XMLStreamException
Deserializes the object from XML

Specified by:
fromXml in interface XmppMarshal
Throws:
java.io.IOException
XMLStreamException

skipToEnd

protected void skipToEnd(XMLStreamReader in,
                         java.lang.String tagName)
                  throws java.io.IOException,
                         XMLStreamException
Throws:
java.io.IOException
XMLStreamException

expectEnd

protected void expectEnd(XMLStreamReader in,
                         java.lang.String tagName)
                  throws java.io.IOException,
                         XMLStreamException
Throws:
java.io.IOException
XMLStreamException

expectEnd

protected void expectEnd(XMLStreamReader in,
                         java.lang.String tagName,
                         int tag)
                  throws java.io.IOException,
                         XMLStreamException
Throws:
java.io.IOException
XMLStreamException

debug

protected void debug(XMLStreamReader in)
              throws java.io.IOException,
                     XMLStreamException
Throws:
java.io.IOException
XMLStreamException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object