public class XmppXmlSplitter extends XmlSplitter
XmlSplitter
, this splitter is aware
of the special semantics of XMPP's <stream:stream>
element.completeElementCallback
Constructor and Description |
---|
XmppXmlSplitter(int maxElementSize,
XmppElementCallback xmppElementCallback)
Construct a new XMPP XML splitter.
|
XmppXmlSplitter(int maxElementSize,
XmppElementCallback xmppElementCallback,
DeclarationCallback declarationCallback,
ProcessingInstructionCallback processingInstructionCallback)
Construct a new XMPP XML splitter.
|
XmppXmlSplitter(XmppElementCallback xmppElementCallback)
Construct a new XMPP XML splitter with a max element size of 10000.
|
XmppXmlSplitter(XmppElementCallback xmppElementCallback,
DeclarationCallback declarationCallback,
ProcessingInstructionCallback processingInstructionCallback)
Construct a new XMPP XML splitter with a max element size of 10000.
|
Modifier and Type | Method and Description |
---|---|
protected void |
onEndTag(String qName) |
protected void |
onNextChar() |
protected void |
onStartTag(String prefix,
String localpart,
Map<String,String> attributes) |
close, flush, getCurrentSplittedPartSize, newSplittedPart, write
public XmppXmlSplitter(XmppElementCallback xmppElementCallback)
RFC 6120 § 13.12 4. requires XMPP servers to use nothing less then 10000 as maximum stanza size.
xmppElementCallback
- the callback invoked once a complete element has been processed.public XmppXmlSplitter(XmppElementCallback xmppElementCallback, DeclarationCallback declarationCallback, ProcessingInstructionCallback processingInstructionCallback)
RFC 6120 § 13.12 4. requires XMPP servers to use nothing less then 10000 as maximum stanza size.
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.public XmppXmlSplitter(int maxElementSize, XmppElementCallback xmppElementCallback)
maxElementSize
- the maximum size of a single top level element in bytes.xmppElementCallback
- the callback invoked once a complete element has been processed.public XmppXmlSplitter(int maxElementSize, XmppElementCallback xmppElementCallback, DeclarationCallback declarationCallback, ProcessingInstructionCallback processingInstructionCallback)
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.protected void onNextChar() throws IOException
onNextChar
in class XmlSplitter
IOException
protected void onStartTag(String prefix, String localpart, Map<String,String> attributes)
onStartTag
in class XmlSplitter
protected void onEndTag(String qName)
onEndTag
in class XmlSplitter