StreamDecoder

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun close()

Closes the reader and releases any associated resources.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun implClose()
Link copied to clipboard
fun implRead(cbuf: CharArray, off: Int, end: Int): Int
Link copied to clipboard
Link copied to clipboard
open override fun read(target: CharBuffer): Int

Reads characters into a CharBuffer. This default implementation reads into an array and then puts the characters into the buffer.

open override fun read(): Int

Reads a single character.

open override fun read(cbuf: CharArray, offset: Int, length: Int): Int

Reads up to len characters into cbuf starting at offset off. Returns the number of characters read, or -1 if the end of the stream is reached.

Link copied to clipboard
open override fun ready(): Boolean

Tells whether this stream is ready to be read.

Link copied to clipboard
open fun reset()

Resets the stream. If the stream has been marked, then attempt to reposition it at the mark. If the stream has not been marked, then attempt to reset it in some way appropriate to the particular stream, for example by repositioning it to its starting point. Not all character-input streams support the reset() operation, and some support reset() without supporting mark().

Link copied to clipboard
open fun transferTo(out: Writer): Long

Reads all characters from this Reader and writes them to out. Returns the number of characters transferred.