public abstract class StringReadChannelListener extends Object implements org.xnio.ChannelListener<org.xnio.channels.StreamSourceChannel>
todo: handle unicode properly
Constructor and Description |
---|
StringReadChannelListener(ByteBufferPool bufferPool) |
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)
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 © 2015 JBoss by Red Hat. All rights reserved.