ToonReader

zio.blocks.schema.toon.ToonReader
See theToonReader companion object
final class ToonReader

A reader to parse TOON input iteratively.

Value parameters

delimiter

the expected delimiter for inline arrays

discriminatorField

optional field name to use as discriminator for DynamicValue variants

expandPaths

strategy for expanding dot-separated paths

indentSize

the expected number of spaces per indentation level

strict

whether to enforce strict TOON parsing

Attributes

Companion
object
Source
ToonReader.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def advanceLine(): Unit

Attributes

Source
ToonReader.scala
def consumeListItemMarker(): Boolean

Attributes

Source
ToonReader.scala
def getCurrentLine: String

Attributes

Source
ToonReader.scala
def getDepth: Int

Attributes

Source
ToonReader.scala
def hasMoreContent: Boolean

Attributes

Source
ToonReader.scala
def hasMoreLines: Boolean

Attributes

Source
ToonReader.scala
def inferType(token: String): Any

Attributes

Source
ToonReader.scala
def isFirstLine: Boolean

Attributes

Source
ToonReader.scala
def isListItem: Boolean

Attributes

Source
ToonReader.scala
def parseArrayHeader(isInline: Boolean = ...): ArrayHeader

Attributes

Source
ToonReader.scala
def peekTrimmedContent: String

Attributes

Source
ToonReader.scala
def readBigDecimal(): BigDecimal

Attributes

Source
ToonReader.scala
def readBigInt(): BigInt

Attributes

Source
ToonReader.scala
def readBoolean(): Boolean

Attributes

Source
ToonReader.scala
def readByte(): Byte

Attributes

Source
ToonReader.scala
def readDouble(): Double

Attributes

Source
ToonReader.scala
def readFloat(): Float

Attributes

Source
ToonReader.scala
def readInlineArray(): Array[String]

Attributes

Source
ToonReader.scala
def readInt(): Int

Attributes

Source
ToonReader.scala
def readKey(): String

Attributes

Source
ToonReader.scala
def readKeyWithArrayNotation(): String

Attributes

Source
ToonReader.scala
def readKeyWithQuoteInfo(): (String, Boolean)

Attributes

Source
ToonReader.scala
def readLong(): Long

Attributes

Source
ToonReader.scala
def readNull(): Unit

Attributes

Source
ToonReader.scala
def readShort(): Short

Attributes

Source
ToonReader.scala
def readString(): String

Attributes

Source
ToonReader.scala
def reset(bytes: Array[Byte], offset: Int, length: Int): Unit

Attributes

Source
ToonReader.scala
def reset(content: String): Unit

Attributes

Source
ToonReader.scala
def resetMark(): Unit

Clears the mark without rolling back. Call this after successfully decoding to allow the reader state to be garbage collected.

Clears the mark without rolling back. Call this after successfully decoding to allow the reader state to be garbage collected.

Attributes

Source
ToonReader.scala
def rollbackToMark(): Unit

Rolls back the reader to the previously marked position. Must be called after setMark().

Rolls back the reader to the previously marked position. Must be called after setMark().

Attributes

Source
ToonReader.scala

Attributes

Source
ToonReader.scala
def setMark(): Unit

Sets a mark at the current position. The reader can later be rolled back to this position using rollbackToMark().

Sets a mark at the current position. The reader can later be rolled back to this position using rollbackToMark().

Attributes

Source
ToonReader.scala
def skipBlankLines(): Unit

Attributes

Source
ToonReader.scala
def skipBlankLinesInArray(isFirstItem: Boolean): Unit

Attributes

Source
ToonReader.scala