code: public void onOutput(ByteBuffer buffer, boolean closed)
     {
        CoderResult coderResult = decoder.decode(buffer, charBuffer, /* endOfInput */ closed);
        charBuffer.flip();
        this.handler.onDecode(charBuffer, closed, coderResult);
        charBuffer.compact();
     }
docs: Implementation of {@link NuProcessHandler#onStdout(ByteBuffer, boolean)}
  or {@link NuProcessHandler#onStderr(ByteBuffer, boolean)} which decodes
  output data and forwards it to {@code handler}.
  
  @param buffer {@link ByteBuffer} which received bytes from stdout or
  stderr
  @param closed true if stdout or stderr was closed, false otherwise