readAndClose

open fun readAndClose(): String

Read all remaining text until the end of this stream, then close this stream. Caution: this function loads all stream content into memory at once. Consider reading a chunk-at-a-time in a loop, using {@link com.sap.cloud.mobile.kotlin.odata.CharStream#readString(kotlin.Int) CharStream.readString}.

Return

The remaining text.