|
Scala Library Documentation
|
|
sealed
class
StreamReader(bin : java.io.BufferedReader, sourceLine : java.lang.String, ln : Int, col : Int)
extends Reader[Char]bin - the underlying java.io.BufferedReadersourceLine - the line at column `col' in the streamline - the 1-based line number of the character returned by `first'column - the 1-based column number of the character returned by `first'| Method Summary | |
def
|
atEnd
: Boolean
Whether there are any more elements in this reader besides the first.
(i.e., whether calling `rest' will yield a `Reader' with more elements)
|
def
|
first
: Char
Returns the first element of the stream
|
def
|
pos
: Position
The position of the first element in the stream
|
def
|
rest
: StreamReader
Returns an abstract reader consisting of all elements except the first
|
| 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 |
def
first : Char
def
rest : StreamReader
atEnd is true, the result will be this'; otherwise, it's a Reader containing
more elements.
def
pos : Position
def
atEnd : Boolean
|
Scala Library Documentation
|
|