public interface NuCharsetEncoderHandler
NuCharsetEncoder with decoded string data.NuProcessHandler| Modifier and Type | Method and Description |
|---|---|
void |
onEncoderError(CoderResult result)
This method is invoked immediately after
onStdinReady(CharBuffer)
returns if encoding the CharBuffer to bytes fails. |
boolean |
onStdinReady(CharBuffer buffer)
This method is invoked after you have expressed a desire to write to stdin
by first calling
NuProcess.wantWrite(). |
boolean onStdinReady(CharBuffer buffer)
NuProcess.wantWrite(). When this method is
invoked, your code should write data to be sent to the stdin of the child
process into the provided CharBuffer. After writing data into the
buffer your code must flip the
buffer before returning.
If not all of the data needed to be written will fit in the provided
buffer, this method can return true to indicate a desire
to write more data. If there is no more data to be written at the time
this method is invoked, then false should be returned from this
method. It is always possible to call NuProcess.wantWrite() later
if data becomes available to be written.
Note that this method can be invoked one more time after you return
false, in case the encoded CharBuffer did not fit inside a
byte buffer.
buffer - a CharBuffer into which your stdin-bound data should
be writtenvoid onEncoderError(CoderResult result)
onStdinReady(CharBuffer)
returns if encoding the CharBuffer to bytes fails.result - The CoderResult indicating the encoding failureCopyright © 2015 Zaxxer.com. All rights reserved.