void close()

Closes this and flushes any outstanding data.

Source

void close();