com.caucho.xmpp
Class AbstractXmppMarshal
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractXmppMarshal
public AbstractXmppMarshal()
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