EventListener, org.xnio.ChannelListener<org.xnio.channels.StreamSourceChannel>public abstract class StringReadChannelListener extends Object implements org.xnio.ChannelListener<org.xnio.channels.StreamSourceChannel>
todo: handle unicode properly
| Constructor | Description |
|---|---|
StringReadChannelListener(ByteBufferPool bufferPool) |
|
StringReadChannelListener(org.xnio.Pool<ByteBuffer> bufferPool) |
Deprecated.
|
| 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) |
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 © 2018. All rights reserved.