Class Utf8ByteXmppXmlSplitter

java.lang.Object
java.io.OutputStream
org.jxmpp.xml.splitter.Utf8ByteXmppXmlSplitter
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

Extended version of XmppXmlSplitter allowing input to be bytes or ByteBuffer representing a UTF-8 encoded XML string for XMPP. Just as they come from a network socket.

This class respects the byte order mark (BOM )requirement of RFC 6120 11.6 and treats the BOM as zero width no-break space, and not as byte order mark.

  • Constructor Details

    • Utf8ByteXmppXmlSplitter

      public Utf8ByteXmppXmlSplitter(XmppElementCallback xmppElementCallback)
      Create a new splitter with the given callback.
      Parameters:
      xmppElementCallback - the callback invoked once a complete element has been processed.
    • Utf8ByteXmppXmlSplitter

      public Utf8ByteXmppXmlSplitter(XmppXmlSplitter xmppXmlSplitter)
      Create a new UTF-8 splitter with the given XMPP XML splitter.
      Parameters:
      xmppXmlSplitter - the used XMPP XML splitter.
  • Method Details