TomlWriter

interface TomlWriter(source)

A custom writer used when encoding model class or TomlElement.

See also

Inheritors

Functions

Link copied to clipboard
abstract fun endArray()

Ends a block array or inline array (no whitespace).

Link copied to clipboard
abstract fun endArrayOfTableHead()

Ends an array of table head (no whitespace).

Link copied to clipboard
abstract fun endInlineTable()

Ends an inline table (no whitespace).

Link copied to clipboard
abstract fun endRegularTableHead()

Ends a regular table head (no whitespace).

Link copied to clipboard
abstract fun startArray()

Starts a block array or inline array (no whitespace).

Link copied to clipboard
abstract fun startArrayOfTableHead()

Starts an array of table head (no whitespace).

Link copied to clipboard
abstract fun startComment()

Starts a comment (no whitespace).

Link copied to clipboard
abstract fun startInlineTable()

Starts an inline table (no whitespace).

Link copied to clipboard
abstract fun startRegularTableHead()

Starts a regular table head (no whitespace).

Link copied to clipboard
open fun writeBoolean(boolean: Boolean)
Link copied to clipboard
abstract fun writeBooleanValue(boolean: Boolean)

Writes boolean as value.

Link copied to clipboard
open fun writeByte(byte: Byte)
Link copied to clipboard
open fun writeByteValue(byte: Byte, base: TomlInteger.Base = Dec, group: Int = 0, uppercase: Boolean = true)
Link copied to clipboard
abstract fun writeChar(char: Char)

Writes char directly.

Link copied to clipboard
open fun writeCharValue(char: Char)
Link copied to clipboard
open fun writeDouble(double: Double)
Link copied to clipboard
open fun writeDoubleValue(double: Double)
Link copied to clipboard
abstract fun writeElementSeparator()

Writes an element separator (no whitespace).

Link copied to clipboard
open fun writeFloat(float: Float)
Link copied to clipboard
abstract fun writeFloatValue(float: Double)

Writes float as value.

open fun writeFloatValue(float: Float)
Link copied to clipboard
abstract fun writeIndentation(indentation: TomlIndentation)

Writes indentation.

Link copied to clipboard
open fun writeInt(int: Int)
Link copied to clipboard
abstract fun writeIntegerValue(integer: Long, base: TomlInteger.Base = Dec, group: Int = 0, uppercase: Boolean = true)

Writes integer as value.

Link copied to clipboard
open fun writeIntValue(int: Int, base: TomlInteger.Base = Dec, group: Int = 0, uppercase: Boolean = true)
Link copied to clipboard
abstract fun writeKey(key: String)

Writes key.

Link copied to clipboard
abstract fun writeKeySeparator()

Writes a key separator (no whitespace).

Link copied to clipboard
abstract fun writeKeyValueSeparator()

Writes a key-value separator (no whitespace).

Link copied to clipboard
abstract fun writeLineFeed()

Writes a line feed.

Link copied to clipboard
open fun writeLong(long: Long)
Link copied to clipboard
open fun writeLongValue(long: Long, base: TomlInteger.Base = Dec, group: Int = 0, uppercase: Boolean = true)
Link copied to clipboard
open fun writeNull()
Link copied to clipboard
abstract fun writeNullValue()

Writes null as value.

Link copied to clipboard
open fun writeShort(short: Short)
Link copied to clipboard
open fun writeShortValue(short: Short, base: TomlInteger.Base = Dec, group: Int = 0, uppercase: Boolean = true)
Link copied to clipboard
abstract fun writeSpace()

Writes a whitespace.

Link copied to clipboard
abstract fun writeString(string: String)

Writes string directly.

Link copied to clipboard
abstract fun writeStringValue(string: String, isMultiline: Boolean = false, isLiteral: Boolean = false)

Writes string as value.