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 stringtodo: handle unicode properly
- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description StringReadChannelListener(ByteBufferPool bufferPool)
StringReadChannelListener(org.xnio.Pool<ByteBuffer> bufferPool)
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
error(IOException e)
void
handleEvent(org.xnio.channels.StreamSourceChannel channel)
void
setup(org.xnio.channels.StreamSourceChannel channel)
protected abstract void
stringDone(String string)
-
-
-
Constructor Detail
-
StringReadChannelListener
public StringReadChannelListener(ByteBufferPool bufferPool)
-
StringReadChannelListener
@Deprecated public StringReadChannelListener(org.xnio.Pool<ByteBuffer> bufferPool)
Deprecated.
-
-
Method Detail
-
setup
public void setup(org.xnio.channels.StreamSourceChannel channel)
-
handleEvent
public void handleEvent(org.xnio.channels.StreamSourceChannel channel)
- Specified by:
handleEvent
in interfaceorg.xnio.ChannelListener<org.xnio.channels.StreamSourceChannel>
-
stringDone
protected abstract void stringDone(String string)
-
error
protected abstract void error(IOException e)
-
-