ReaderParserInput

fastparse.ReaderParserInput
case class ReaderParserInput(data: Reader, bufferSize: Int) extends BufferedParserInput

A ParserInput that pulls data from a given java.io.Reader. Typically not used alone, and instead is used as part of a ParserInputSource.FromReadable

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Inherited methods

override def apply(index: Int): Char

Requests batches until given index and in case of success returns needed element.

Requests batches until given index and in case of success returns needed element.

Attributes

Definition Classes
Inherited from:
BufferedParserInput
def checkTraceable(): Unit

Attributes

Inherited from:
BufferedParserInput
override def dropBuffer(index: Int): Unit

Drops all elements before index not inclusive.

Drops all elements before index not inclusive.

Attributes

Definition Classes
Inherited from:
BufferedParserInput
override def innerLength: Int

Attributes

Returns:

Length of the internal buffer.

Definition Classes
Inherited from:
BufferedParserInput
override def isReachable(index: Int): Boolean

Requests batches until index of last retrieved element is less than index and, when it's possible, returns true, otherwise false.

Requests batches until index of last retrieved element is less than index and, when it's possible, returns true, otherwise false.

Attributes

Definition Classes
Inherited from:
BufferedParserInput
override def length: Int

Attributes

Returns:

Index of the last element which buffer contains.

Definition Classes
Inherited from:
BufferedParserInput
def prettyIndex(index: Int): String

Attributes

Inherited from:
BufferedParserInput
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
override def slice(from: Int, until: Int): String

Also requests batches to the until. If the current buffer is too small to provide some part of data after from bound, lower bound of slice is cut to the minimum of from and first index of accessible element in the buffer.

Also requests batches to the until. If the current buffer is too small to provide some part of data after from bound, lower bound of slice is cut to the minimum of from and first index of accessible element in the buffer.

Attributes

Definition Classes
Inherited from:
BufferedParserInput

Inherited fields

protected val buffer: UberBuffer

Attributes

Inherited from:
BufferedParserInput
protected var firstIdx: Int

Attributes

Inherited from:
BufferedParserInput