_out.print(result.toString(_env).toString());
if (result instanceof BinaryValue) _out.write(((BinaryValue) result).toBytes()); else _out.print(result.toString(_env).toString());
  private void callCallback()  {    if (_callback != null) {      Value result =         _callback.call(_env, getContents(), LongValue.create(_state));      // special code to do nothing to the buffer      if (result.isNull())        return;            clean();      try {        _out.print(result.toString(_env).toString());      } catch (IOException e) {        _env.error(e.toString(), e);      }    }  }