Package io.ktor.utils.io.charsets

Types

Charset
Link copied to clipboard
abstract class Charset
abstract class Charset(_name: String)
typealias Charset = Charset
CharsetDecoder
Link copied to clipboard
abstract class CharsetDecoder
abstract class CharsetDecoder(_charset: Charset)
typealias CharsetDecoder = CharsetDecoder
CharsetEncoder
Link copied to clipboard
abstract class CharsetEncoder
abstract class CharsetEncoder(_charset: Charset)
typealias CharsetEncoder = CharsetEncoder
Charsets
Link copied to clipboard
object Charsets
typealias Charsets = Charsets
MalformedInputException
Link copied to clipboard
open class MalformedInputException(message: String) : Throwable
open class MalformedInputException(message: String) : MalformedInputException
TooLongLineException
Link copied to clipboard
common
class TooLongLineException(message: String) : MalformedInputException

Functions

decode
Link copied to clipboard
common
fun CharsetDecoder.decode(input: Input, max: Int = Int.MAX_VALUE): String
fun CharsetDecoder.decode(input: Input, dst: Appendable, max: Int): Int
decodeExactBytes
Link copied to clipboard
common
fun CharsetDecoder.decodeExactBytes(input: Input, inputLength: Int): String
decodeUTF
Link copied to clipboard
fun ByteBuffer.decodeUTF(out: CharArray, offset: Int, length: Int): Long
decodeUTF8Line
Link copied to clipboard
fun ByteBuffer.decodeUTF8Line(out: CharArray, offset: Int = 0, length: Int = out.size): Long
decodeUtf8Result
Link copied to clipboard
fun decodeUtf8Result(numberOfChars: Int, requireBytes: Int): Long
decodeUtf8ResultCombine
Link copied to clipboard
fun decodeUtf8ResultCombine(prev: Long, next: Long): Long
encode
Link copied to clipboard
common
fun CharsetEncoder.encode(input: CharSequence, fromIndex: Int = 0, toIndex: Int = input.length): ByteReadPacket
fun CharsetEncoder.encode(input: CharArray, fromIndex: Int, toIndex: Int, dst: Output)
fun CharsetEncoder.encode(input: CharSequence, fromIndex: Int, toIndex: Int, dst: Output)
encodeToByteArray
Link copied to clipboard
common
fun CharsetEncoder.encodeToByteArray(input: CharSequence, fromIndex: Int = 0, toIndex: Int = input.length): ByteArray
encodeToByteArrayImpl
Link copied to clipboard
common
fun CharsetEncoder.encodeToByteArrayImpl(input: CharSequence, fromIndex: Int = 0, toIndex: Int = input.length): ByteArray
encodeUTF8
Link copied to clipboard
fun CharsetEncoder.encodeUTF8(input: ByteReadPacket): ByteReadPacket
fun CharsetEncoder.encodeUTF8(input: ByteReadPacket, dst: Output)
fun CharsetEncoder.encodeUTF8(input: ByteReadPacket, dst: Output)

Properties

charset
Link copied to clipboard
val CharsetEncoder.charset: Charset
charset
Link copied to clipboard
val CharsetDecoder.charset: Charset
Decoder's charset it is created for.
val CharsetDecoder.charset: Charset
name
Link copied to clipboard
val Charset.name: String