close

abstract fun close(error: Boolean = false)

Close the writer

Parameters

error

true: if close by occur error, false: otherwise