class SseEncoder
source · line 6public
public class SseEncoder private constructor(private val output: SseOutput) : Closeable
- Supertype
Closeable - Inherited
fun dispose(): Unit· Closeable
An incremental encoder for one SSE message or comment block, with bounded output state.
property isFinished
source · line 22public
public val isFinished: Boolean
get: public read-only
Whether every byte of the complete block has been written.
getter get
source · line 22public
get(): Boolean
constructor constructor
source · line 8public
constructor(message: SseMessage)
Retains an already validated message and begins before its first output byte.
parameter message
source · line 8public
message: SseMessage
function writeInto
source · line 27public
public fun writeInto(buffer: NativeByteBuffer, count: Long = buffer.writableBytes): Long
Writes a bounded prefix, allowing a short output even inside a UTF-8 scalar.
parameter count
source · line 27public
count: Long = buffer.writableBytes
parameter buffer
source · line 27public
buffer: NativeByteBuffer
property isClosed
source · line 24public
public val isClosed: Boolean
get: public read-only
Whether local state has been explicitly released.
getter get
source · line 24public
get(): Boolean
function close
source · line 50public
public override fun close(): Unit
- Overrides
close
Drops retained text without emitting bytes or closing the caller's buffer.