void write(Object obj)

Adds the contents of obj, converted to a string, to the buffer.

Source

external void write(Object obj);