close

open suspend override fun close()(source)

Closes the encoder, ensuring all data is written. Closing the encoder also closes the underlying sink.

Throws

If an I/O error occurs.