t

zio.json.internal

RetractReader

sealed trait RetractReader extends Reader with OneCharReader

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.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RetractReader
  2. OneCharReader
  3. Reader
  4. Closeable
  5. AutoCloseable
  6. Readable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def close(): Unit
    Definition Classes
    Reader → Closeable → AutoCloseable
    Annotations
    @throws(classOf[java.io.IOException])
  2. abstract def readChar(): Char
    Definition Classes
    OneCharReader
  3. abstract def retract(): Unit

    Behaviour is undefined if called more than once without a read()

Concrete Value Members

  1. def mark(arg0: Int): Unit
    Definition Classes
    Reader
    Annotations
    @throws(classOf[java.io.IOException])
  2. def markSupported(): Boolean
    Definition Classes
    Reader
  3. def nextNonWhitespace(): Char
    Definition Classes
    OneCharReader
  4. def read(): Int
    Definition Classes
    OneCharReader → Reader
  5. def read(cbuf: Array[Char], off: Int, len: Int): Int
    Definition Classes
    OneCharReader → Reader
  6. def read(arg0: Array[Char]): Int
    Definition Classes
    Reader
    Annotations
    @throws(classOf[java.io.IOException])
  7. def read(arg0: CharBuffer): Int
    Definition Classes
    Reader → Readable
    Annotations
    @throws(classOf[java.io.IOException])
  8. def ready(): Boolean
    Definition Classes
    Reader
    Annotations
    @throws(classOf[java.io.IOException])
  9. def reset(): Unit
    Definition Classes
    Reader
    Annotations
    @throws(classOf[java.io.IOException])
  10. def skip(arg0: Long): Long
    Definition Classes
    Reader
    Annotations
    @throws(classOf[java.io.IOException])