public class Utf8ByteXmppXmlSplitter
extends java.io.OutputStream
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 and Description |
|---|
Utf8ByteXmppXmlSplitter(XmppElementCallback xmppElementCallback)
Create a new splitter with the given callback.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(byte b)
Write a single byte.
|
void |
write(int b) |
public Utf8ByteXmppXmlSplitter(XmppElementCallback xmppElementCallback)
xmppElementCallback - the callback invoked once a complete element has been processed.public void write(byte b)
throws java.io.IOException
b - the byte to write.java.io.IOException - if an error occurs.public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException