Package org.jivesoftware.smack
Interface XmppInputOutputFilter
public interface XmppInputOutputFilter
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault voidgetStats()input(ByteBuffer inputData) The returnedByteBufferis going to get flipped by the caller.output(ByteBuffer outputData, boolean isFinalDataOfElement, boolean destinationAddressChanged, boolean moreDataAvailable) TheoutputDataargument may be a directByteBuffer.default void
-
Method Details
-
output
XmppInputOutputFilter.OutputResult output(ByteBuffer outputData, boolean isFinalDataOfElement, boolean destinationAddressChanged, boolean moreDataAvailable) throws IOException TheoutputDataargument may be a directByteBuffer. The filter has consume the data of the buffer completely. This method must return aXmppInputOutputFilter.OutputResult. UseXmppInputOutputFilter.OutputResult.NO_OUTPUTif there is no output.- Parameters:
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.- Returns:
- a output result.
- Throws:
IOException- in case an I/O exception occurs.
-
input
The returnedByteBufferis going to get flipped by the caller. The callee must not flip the buffer.- Parameters:
inputData- the data this method needs to process.- Returns:
- a
ByteBufferornullif no data could be produced. - Throws:
IOException- in case an I/O exception occurs.
-
closeInputOutput
default void closeInputOutput() -
waitUntilInputOutputClosed
default void waitUntilInputOutputClosed() throws IOException, SmackException.NoResponseException, CertificateException, InterruptedException, SmackException, XMPPException -
getStats
Object getStats() -
getFilterName
String getFilterName()
-