copy To
See copyTo(CharStream, Boolean).
Parameters
target
Target parameter.
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.
close Target
Close target stream? (defaults to true)