public class StringWriteChannelListener extends Object implements org.xnio.ChannelListener<org.xnio.channels.StreamSinkChannel>
setup(org.xnio.channels.StreamSinkChannel)
should be called, which will attempt a write, and only add the listener if required.Constructor and Description |
---|
StringWriteChannelListener(String string) |
StringWriteChannelListener(String string, Charset charset) |
Modifier and Type | Method and Description |
---|---|
protected void | handleError(org.xnio.channels.StreamSinkChannel channel, IOException e) |
void | handleEvent(org.xnio.channels.StreamSinkChannel channel) |
boolean | hasRemaining() |
void | setup(org.xnio.channels.StreamSinkChannel channel) |
protected void | writeDone(org.xnio.channels.StreamSinkChannel channel) |
public StringWriteChannelListener(String string)
public void setup(org.xnio.channels.StreamSinkChannel channel)
protected void handleError(org.xnio.channels.StreamSinkChannel channel, IOException e)
public void handleEvent(org.xnio.channels.StreamSinkChannel channel)
handleEvent
in interface org.xnio.ChannelListener<org.xnio.channels.StreamSinkChannel>
public boolean hasRemaining()
protected void writeDone(org.xnio.channels.StreamSinkChannel channel)
Copyright © 2015 JBoss by Red Hat. All rights reserved.