RetractReader

jzon.internal.RetractReader

A Reader that can retract and replay the last char that it read.

This is essential when parsing contents that do not have a terminator character, e.g. numbers, whilst preserving the non-significant character for further processing.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def retract(): Unit

Behaviour is undefined if called more than once without a read() Behaviour is also undefined if called after reading a surrogate.

Behaviour is undefined if called more than once without a read() Behaviour is also undefined if called after reading a surrogate.

Attributes

Inherited methods

final protected def isWhitespace(c: Char): Boolean

Attributes

Inherited from:
OneCharReader
def nextNonWhitespace(): Char

Attributes

Inherited from:
OneCharReader
def read(): Int

Attributes

Inherited from:
OneCharReader
def readChar(): Char

Attributes

Inherited from:
OneCharReader