public class Utf8ByteXmppXmlSplitter extends 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) |
close, flush, write, writepublic Utf8ByteXmppXmlSplitter(XmppElementCallback xmppElementCallback)
xmppElementCallback - the callback invoked once a complete element has been processed.public void write(byte b) throws IOException
b - the byte to write.IOException - if an error occurs.public void write(int b) throws IOException
write in class OutputStreamIOException