Package-level declarations

Types

Link copied to clipboard
expect abstract class Charset
actual abstract class Charset(_name: String)
Link copied to clipboard
expect abstract class CharsetDecoder
actual abstract class CharsetDecoder(_charset: Charset)
Link copied to clipboard
expect abstract class CharsetEncoder
actual abstract class CharsetEncoder(_charset: Charset)
Link copied to clipboard
actual object Charsets
expect object Charsets
actual object Charsets
actual object Charsets
actual object Charsets
Link copied to clipboard
expect open class MalformedInputException(message: String) : IOException
actual open class MalformedInputException(message: String) : IOException
Link copied to clipboard

Properties

Link copied to clipboard

Decoder's charset it is created for.

Link copied to clipboard
expect val Charset.name: String
actual val Charset.name: String
actual val Charset.name: String

Functions

Link copied to clipboard
actual fun CharsetDecoder.decode(input: Source, dst: Appendable, max: Int): Int
fun CharsetDecoder.decode(input: Source, max: Int = Int.MAX_VALUE): String
expect fun CharsetDecoder.decode(input: Source, dst: Appendable, max: Int): Int
actual fun CharsetDecoder.decode(input: Source, dst: Appendable, max: Int): Int
actual fun CharsetDecoder.decode(input: Source, dst: Appendable, max: Int): Int
actual fun CharsetDecoder.decode(input: Source, dst: Appendable, max: Int): Int
actual fun CharsetDecoder.decode(input: Source, dst: Appendable, max: Int): Int
Link copied to clipboard
fun CharsetEncoder.encode(input: CharSequence, fromIndex: Int = 0, toIndex: Int = input.length): Source
fun CharsetEncoder.encode(input: CharArray, fromIndex: Int, toIndex: Int, dst: Sink)
Link copied to clipboard
expect fun CharsetEncoder.encodeToByteArray(input: CharSequence, fromIndex: Int = 0, toIndex: Int = input.length): ByteArray
actual fun CharsetEncoder.encodeToByteArray(input: CharSequence, fromIndex: Int, toIndex: Int): ByteArray
actual fun CharsetEncoder.encodeToByteArray(input: CharSequence, fromIndex: Int, toIndex: Int): ByteArray
Link copied to clipboard
expect fun Charsets.forName(name: String): Charset

Find a charset by name.

actual fun Charsets.forName(name: String): Charset

Find a charset by name.

actual fun Charsets.forName(name: String): Charset

Find a charset by name.

Link copied to clipboard
expect fun Charsets.isSupported(name: String): Boolean

Check if a charset is supported by the current platform.

actual fun Charsets.isSupported(name: String): Boolean

Check if a charset is supported by the current platform.

actual fun Charsets.isSupported(name: String): Boolean

Check if a charset is supported by the current platform.