public abstract class StringReadChannelListener extends Object implements org.xnio.ChannelListener<org.xnio.channels.StreamSourceChannel>
todo: handle unicode properly
Constructor and Description |
---|
StringReadChannelListener(ByteBufferPool bufferPool) |
StringReadChannelListener(org.xnio.Pool<ByteBuffer> bufferPool) Deprecated. |
Modifier and Type | Method and 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) |
public StringReadChannelListener(ByteBufferPool bufferPool)
@Deprecated public StringReadChannelListener(org.xnio.Pool<ByteBuffer> bufferPool)
public void setup(org.xnio.channels.StreamSourceChannel channel)
public void handleEvent(org.xnio.channels.StreamSourceChannel channel)
handleEvent
in interface org.xnio.ChannelListener<org.xnio.channels.StreamSourceChannel>
protected abstract void stringDone(String string)
protected abstract void error(IOException e)
Copyright © 2020 JBoss by Red Hat. All rights reserved.