public abstract class StringReadChannelListener extends Object implements ChannelListener<StreamSourceChannel>
todo: handle unicode properly
ChannelListener.Setter<T extends Channel>, ChannelListener.SimpleSetter<T extends Channel>
Constructor and Description |
---|
StringReadChannelListener(ByteBufferPool bufferPool) |
StringReadChannelListener(Pool<ByteBuffer> bufferPool)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
error(IOException e) |
void |
handleEvent(StreamSourceChannel channel)
Handle the event on this channel.
|
void |
setup(StreamSourceChannel channel) |
protected abstract void |
stringDone(String string) |
public StringReadChannelListener(ByteBufferPool bufferPool)
@Deprecated public StringReadChannelListener(Pool<ByteBuffer> bufferPool)
public void setup(StreamSourceChannel channel)
public void handleEvent(StreamSourceChannel channel)
ChannelListener
handleEvent
in interface ChannelListener<StreamSourceChannel>
channel
- the channel eventprotected abstract void stringDone(String string)
protected abstract void error(IOException e)
Copyright © 2017 JBoss by Red Hat. All rights reserved.