phasync
StringBuffer / end

Method

StringBuffer::end

Marks the end of the stream: no more writes are accepted, and readers get the data left and then the end.

Description#

public StringBuffer::end(): void

Errors / Exceptions#

ExceptionWhen
LogicExceptionIf the buffer has ended already

See also#

  • StringBuffer::eofReturns true if the buffer has ended and all its data has been read.