scala.util.parsing.input

class StreamReader

[source: scala/util/parsing/input/StreamReader.scala]

sealed class StreamReader(seq : PagedSeq[Char], off : Int, lnum : Int)
extends PagedSeqReader
A StreamReader reads from a character sequence, typically created as a PagedSeq from a java.io.Reader NOTE: StreamReaders do not really fulfill the new contract for readers, which requires a `source' CharSequence representing the full input. Instead source is treated line by line. As a consequence, regex matching cannot extend beyond a single line when a StreamReader are used for input. If you need to match regexes spanning several lines you should consider class PagedSeqReader instead.
Author
Miles Sabin
Martin Odersky
Values and Variables inherited from PagedSeqReader
offset, source
Method Summary
override def drop (n : Int) : StreamReader
Returns an abstract reader consisting of all elements except the first n elements.
override def pos : Position
The position of the first element in the reader
override def rest : StreamReader
Returns a PagedSeqReader consisting of all elements except the first
Methods inherited from PagedSeqReader
first, atEnd
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
override def rest : StreamReader
Returns a PagedSeqReader consisting of all elements except the first
Returns
If atEnd is true, the result will be this'; otherwise, it's a PagedSeqReader containing the rest of input.
Overrides
PagedSeqReader.rest

override def drop(n : Int) : StreamReader
Returns an abstract reader consisting of all elements except the first n elements.
Overrides
PagedSeqReader.drop

override def pos : Position
The position of the first element in the reader
Overrides
PagedSeqReader.pos