withUndo

open fun withUndo(): CharStream

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}.

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.