public final void write(String data){
  byte[] bytes=data.getBytes(StandardCharsets.UTF_8);
  write(bytes,0,bytes.length);
}

public final void write ( String data ) { byte [ ] bytes = data . getBytes ( StandardCharsets . UTF_8 ) ; write ( bytes , 0 , bytes . length ) ; }
write a string using the utf - 8 encoding to the terminal client .
