breeze.io

TextReader

trait TextReader extends AnyRef

Reader for consuming unicode code points from a stream. See implicit constructors in companion object. This class is not threadsafe.

Self Type
TextReader
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TextReader
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def close(): Unit

    Closes the input.

  2. abstract def columnNumber: Int

    Returns the current column number in the reader (1-based).

  3. abstract def lineNumber: Int

    Returns the current line number in the reader (1-based).

  4. abstract def peek(n: Int): Int

    Peeks at the character at offset n.

    Peeks at the character at offset n. With n == 0 is the same as peek(). This method might not be implemented for all n>0 in all TextReader implementations, in which case it will throw an IllegalArgumentException.

  5. abstract def peek(): Int

    Peeks at the next unicode code point without consuming it, or -1 if the end of input.

  6. abstract def read(): Int

    Returns the next unicode code point to be read, or -1 if the end of input.

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def ++(next: TextReader): TextReader

    Concatenates two TextReaders together.

  5. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  6. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def die(msg: String): Nothing

    Throws a TextReaderException at the current line and column.

  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def expect(literal: String): Unit

    Expect the given literal, throwing an exception on mismatch.

  13. def expect(literal: Char): Unit

    Expect the given literal, throwing an exception on mismatch.

  14. def expectLower(literal: String): Unit

    Expect the given literal (after lowercasing).

  15. def expectLower(literal: Char): Unit

    Expect the given literal (after lowercasing).

  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. def isEmpty: Boolean

    Returns true if there are no more characters left to consume.

  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. def read(numChars: Int): String

    Reads up to numChars characters from the input, or fewer if at the end of input.

  25. def readLine(): String

    Reads the next line from the input.

    Reads the next line from the input. Does not return the newline, which is left in the stream. Returns null if there are no more lines.

  26. def readNewline(): String

    Reads and returns a newline character at the current position.

    Reads and returns a newline character at the current position. Throws an exception if a newline does not follow.

  27. def readNumber(): String

    Read a sequence of character consisting of the digits '0' to '9'.

    Read a sequence of character consisting of the digits '0' to '9'. Returns null if there are no more characters.

  28. def readRemaining(): String

    Returns the rest of the characters in the input as a String.

  29. def readWhile(fn: (Int) ⇒ Boolean): String

    Consumes the characters from input while available and while the predicate matches.

    Consumes the characters from input while available and while the predicate matches. Returns null if there are no more characters.

  30. def skipWhile(fn: (Int) ⇒ Boolean): Unit

    Skips characters while the given predicate is true.

  31. def skipWhitespace(): Unit

    Skips whitespace characters.

  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toString(): String

    Definition Classes
    AnyRef → Any
  34. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped