protected class JaxmppCore.DefaultPacketWriter extends Object implements PacketWriter
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultPacketWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
write(Element stanza)
Write a element to Stream.
|
void |
write(Element stanza,
AsyncCallback asyncCallback)
Write a (IQ) stanza element to Stream and register callback with default
timeout.
|
void |
write(Element stanza,
Long timeout,
AsyncCallback asyncCallback)
Write a (IQ) stanza element to Stream and register callback with given
timeout.
|
public void write(Element stanza) throws JaxmppException
PacketWriterwrite in interface PacketWriterstanza - Element to writeJaxmppExceptionpublic void write(Element stanza, AsyncCallback asyncCallback) throws JaxmppException
PacketWriterwrite in interface PacketWriterstanza - Element to writeasyncCallback - AsyncCallback to registerJaxmppExceptionpublic void write(Element stanza, Long timeout, AsyncCallback asyncCallback) throws JaxmppException
PacketWriterwrite in interface PacketWriterstanza - stanza Element to writetimeout - time after which will be execute AsyncCallback.onTimeout()asyncCallback - asyncCallback AsyncCallback to registerJaxmppExceptionCopyright © 2006–2020 Tigase. All rights reserved.