Package io.undertow.util
Class StringReadChannelListener
java.lang.Object
io.undertow.util.StringReadChannelListener
- All Implemented Interfaces:
EventListener,org.xnio.ChannelListener<org.xnio.channels.StreamSourceChannel>
public abstract class StringReadChannelListener
extends Object
implements org.xnio.ChannelListener<org.xnio.channels.StreamSourceChannel>
Simple utility class for reading a string
todo: handle unicode properly
- Author:
- Stuart Douglas
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionStringReadChannelListener(ByteBufferPool bufferPool) StringReadChannelListener(org.xnio.Pool<ByteBuffer> bufferPool) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voiderror(IOException e) voidhandleEvent(org.xnio.channels.StreamSourceChannel channel) voidsetup(org.xnio.channels.StreamSourceChannel channel) protected abstract voidstringDone(String string)
-
Constructor Details
-
StringReadChannelListener
-
StringReadChannelListener
Deprecated.
-
-
Method Details
-
setup
public void setup(org.xnio.channels.StreamSourceChannel channel) -
handleEvent
public void handleEvent(org.xnio.channels.StreamSourceChannel channel) - Specified by:
handleEventin interfaceorg.xnio.ChannelListener<org.xnio.channels.StreamSourceChannel>
-
stringDone
-
error
-