void write(Object obj)

Converts obj to a String by invoking Object.toString and adds the result to this.

Source

void write(Object obj);