void close()

Tell the sink that no further data will be added.

Calling this method more than once is allowed, but does nothing.

The add method must not be called after this method.

Source

void close();