void finish()
Finish the stream; validates that end-of-stream was reached, otherwise throws truncated.
truncated