Class XmppStreamDecoder

  • All Implemented Interfaces:
    ReaderInterceptor

    public final class XmppStreamDecoder
    extends Object
    implements ReaderInterceptor
    Decodes an XMPP stream from a synchronous source (reader).

    Stream restarts can be achieved by using the restart() methods.

    • Constructor Detail

      • XmppStreamDecoder

        public XmppStreamDecoder​(XMLInputFactory inputFactory,
                                 Supplier<javax.xml.bind.Unmarshaller> unmarshaller,
                                 String contentNamespace)
        Creates the XMPP encoder.

        Because Marshaller is not thread-safe, it is recommended to pass a ThreadLocal<Marshaller> to this constructor, which ensures thread-safety during marshalling.

        Parameters:
        inputFactory - The XML input factory.
        unmarshaller - Supplies the marshaller which will convert objects to XML.
        contentNamespace - The stream namespace.
    • Method Detail

      • restart

        public void restart()