Class XmppXmlSplitter

    • Constructor Detail

      • XmppXmlSplitter

        public XmppXmlSplitter​(XmppElementCallback xmppElementCallback)
        Construct a new XMPP XML splitter with a max element size of 10000.

        RFC 6120 § 13.12 4. requires XMPP servers to use nothing less then 10000 as maximum stanza size.

        Parameters:
        xmppElementCallback - the callback invoked once a complete element has been processed.
      • XmppXmlSplitter

        public XmppXmlSplitter​(XmppElementCallback xmppElementCallback,
                               DeclarationCallback declarationCallback,
                               ProcessingInstructionCallback processingInstructionCallback)
        Construct a new XMPP XML splitter with a max element size of 10000.

        RFC 6120 § 13.12 4. requires XMPP servers to use nothing less then 10000 as maximum stanza size.

        Parameters:
        xmppElementCallback - the callback invoked once a complete element has been processed.
        declarationCallback - a optional callback for XML Declarations.
        processingInstructionCallback - a optional callback for XML Processing Instructions.
      • XmppXmlSplitter

        public XmppXmlSplitter​(int maxElementSize,
                               XmppElementCallback xmppElementCallback)
        Construct a new XMPP XML splitter.
        Parameters:
        maxElementSize - the maximum size of a single top level element in bytes.
        xmppElementCallback - the callback invoked once a complete element has been processed.
      • XmppXmlSplitter

        public XmppXmlSplitter​(int maxElementSize,
                               XmppElementCallback xmppElementCallback,
                               DeclarationCallback declarationCallback,
                               ProcessingInstructionCallback processingInstructionCallback)
        Construct a new XMPP XML splitter.
        Parameters:
        maxElementSize - the maximum size of a single top level element in bytes.
        xmppElementCallback - the callback invoked once a complete element has been processed.
        declarationCallback - a optional callback for XML Declarations.
        processingInstructionCallback - a optional callback for XML Processing Instructions.
      • XmppXmlSplitter

        public XmppXmlSplitter​(XmlPrinter xmlPrinter)
        Constructs a new XMPP XML splitter without any maximum element size restrictions using the given XML printer.
        Parameters:
        xmlPrinter - the optional XML printer to use.
      • XmppXmlSplitter

        public XmppXmlSplitter​(int maxElementSize,
                               XmppElementCallback xmppElementCallback,
                               XmlPrinter xmlPrinter)
        Constructs a new XMPP XML splitter.
        Parameters:
        maxElementSize - the maximum size of a single top level element in bytes.
        xmppElementCallback - the callback invoked once a complete element has been processed.
        xmlPrinter - the optional XML printer to use.
      • XmppXmlSplitter

        public XmppXmlSplitter​(int maxElementSize,
                               XmppElementCallback xmppElementCallback,
                               DeclarationCallback declarationCallback,
                               ProcessingInstructionCallback processingInstructionCallback,
                               XmlPrinter xmlPrinter)
        Construct a new XMPP XML splitter.
        Parameters:
        maxElementSize - the maximum size of a single top level element in bytes.
        xmppElementCallback - the callback invoked once a complete element has been processed.
        declarationCallback - a optional callback for XML Declarations.
        processingInstructionCallback - a optional callback for XML Processing Instructions.
        xmlPrinter - The optional XML printer to use.