interface WritingSerializer<T> : Serializer<T>, Any
Methods
serialize
abstract fun serialize(writer: Writer, value: T)
Parameters
Name | Description |
---|---|
writer: Writer
|
|
value: T
|
ReturnValue
Name | Description |
---|---|
Unit
|
serialize
open fun serialize(value: T): String
Parameters
Name | Description |
---|---|
value: T
|
ReturnValue
Name | Description |
---|---|
String
|
serializeMany
open fun serializeMany(writer: Writer, vararg values: T): serializeMany(writer, listOf(*values))
Parameters
Name | Description |
---|---|
writer: Writer
|
|
vararg values: T
|
ReturnValue
Name | Description |
---|---|
serializeMany(writer, listOf(*values))
|
serializeMany
abstract fun serializeMany(writer: Writer, values: Iterable<T>)
Parameters
Name | Description |
---|---|
writer: Writer
|
|
values: Iterable<T>
|
ReturnValue
Name | Description |
---|---|
Unit
|
serializeMany
open fun serializeMany(values: Iterable<T>): String
Parameters
Name | Description |
---|---|
values: Iterable<T>
|
ReturnValue
Name | Description |
---|---|
String
|
serializeMany
open fun serializeMany(writer: Writer, values: Sequence
Parameters
Name | Description |
---|---|
writer: Writer
|
|
values: Sequence
|
ReturnValue
Name | Description |
---|---|
serializeMany(writer, values.asIterable())
|