Package rocks.xmpp.core.net
Interface ReaderInterceptor
-
- All Known Subinterfaces:
XmppDebugger
- All Known Implementing Classes:
ConsoleDebugger,XmppStreamDecoder,XmppStreamDecoder
public interface ReaderInterceptorInterceptsStreamElements after reading them from the wire.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidprocess(Reader reader, Consumer<StreamElement> streamElementListener, ReaderInterceptorChain chain)Processes
-
-
-
Method Detail
-
process
void process(Reader reader, Consumer<StreamElement> streamElementListener, ReaderInterceptorChain chain) throws Exception
Processes- Parameters:
reader- The reader from which the stream is read.streamElementListener- Listens for stream elements being read from the reader.chain- The reader chain, which allows to proceed to the next interceptor.- Throws:
Exception- Any exception happening during interception.
-
-