Char Stream
Abstract base class for char streams, using UTF-16 code units.
Properties
Functions
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.
Copy all remaining text until the end of this stream into a file, then close this stream.
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}.
See readString(Int).
Read up to length characters from this stream (may read less, even if the end of stream is not reached).
Convert this data value to a string. If the {@link com.sap.cloud.mobile.kotlin.odata.CharStream#dataType CharStream.dataType} is defined by XML Schema Part 2: Datatypes, then the corresponding lexical format is used. JSON format is used for structured values (arrays and objects).
Fluent API to set the {@link com.sap.cloud.mobile.kotlin.odata.CharStream#mediaType CharStream.mediaType} for this stream.
Return a wrapper (if needed) of this stream supporting {@link com.sap.cloud.mobile.kotlin.odata.CharStream#undoRead(kotlin.Char) CharStream.undoRead}, or this stream if it already supports undoRead.
- See Also:
-
{@link com.sap.cloud.mobile.kotlin.odata.CharStream#canUndo CharStream.canUndo}.
Write to this stream the portion of text from the specified offset with the specified length.