LineBreakOutFeed

class LineBreakOutFeed constructor(val interval: Byte, out: Encoder.OutFeed) : Encoder.OutFeed(source)

A Wrapper around another Encoder.OutFeed to hijack the output and insert new line characters at every expressed interval.

Parameters

interval

The interval at which new lines are inserted

out

The other Encoder.OutFeed

Throws

IllegalArgumentException

if interval is less than 0

Constructors

Link copied to clipboard
constructor(interval: Byte, out: Encoder.OutFeed)

Properties

Link copied to clipboard
@JvmField
val interval: Byte

Functions

Link copied to clipboard
open override fun output(encoded: Char)
Link copied to clipboard
fun reset()

Resets the count to 0