copyTo

open fun copyTo(target: CharStream)

See copyTo(CharStream, Boolean).

Parameters

target

Target parameter.


open fun copyTo(target: CharStream, closeTarget: Boolean)

Copy all remaining text until the end of this stream into a target stream, then close this stream. Also propagate the {@link com.sap.cloud.mobile.kotlin.odata.CharStream#entityTag CharStream.entityTag} and {@link com.sap.cloud.mobile.kotlin.odata.CharStream#mediaType CharStream.mediaType} of this stream into the target stream.

Parameters

target

Output stream.

closeTarget

Close target stream? (defaults to true)