public interface XmppInputOutputFilter
| Modifier and Type | Interface and Description |
|---|---|
static class |
XmppInputOutputFilter.OutputResult |
| Modifier and Type | Method and Description |
|---|---|
default void |
closeInputOutput() |
default java.lang.Object |
getStats() |
java.nio.ByteBuffer |
input(java.nio.ByteBuffer inputData)
The returned
ByteBuffer is going to get fliped by the caller. |
XmppInputOutputFilter.OutputResult |
output(java.nio.ByteBuffer outputData,
boolean isFinalDataOfElement,
boolean destinationAddressChanged,
boolean moreDataAvailable)
The
outputData argument may be a direct ByteBuffer. |
default void |
waitUntilInputOutputClosed() |
XmppInputOutputFilter.OutputResult output(java.nio.ByteBuffer outputData, boolean isFinalDataOfElement, boolean destinationAddressChanged, boolean moreDataAvailable) throws java.io.IOException
outputData argument may be a direct ByteBuffer. The filter has consume the data of the buffer
completely.
This method must return a XmppInputOutputFilter.OutputResult. Use XmppInputOutputFilter.OutputResult.NO_OUTPUT if there is no output.outputData - the data this method needs to process.isFinalDataOfElement - if this is the final data of the element.destinationAddressChanged - if the destination address has changed.moreDataAvailable - if more data is available.java.io.IOException - in case an I/O exception occurs.java.nio.ByteBuffer input(java.nio.ByteBuffer inputData)
throws java.io.IOException
ByteBuffer is going to get fliped by the caller. The callee must not flip the buffer.inputData - the data this methods needs to process.ByteBuffer or null if no data could be produced.java.io.IOException - in case an I/O exception occurs.default void closeInputOutput()
default void waitUntilInputOutputClosed()
throws java.io.IOException,
SmackException.NoResponseException,
java.security.cert.CertificateException,
java.lang.InterruptedException,
SmackException
java.io.IOExceptionSmackException.NoResponseExceptionjava.security.cert.CertificateExceptionjava.lang.InterruptedExceptionSmackExceptiondefault java.lang.Object getStats()