Packages

  • package root
    Definition Classes
    root
  • package grizzled

    The Grizzled Scala Library contains a variety of miscellaneous, general purpose utility classes and objects.

    The Grizzled Scala Library contains a variety of miscellaneous, general purpose utility classes and objects.

    The home page for the Grizzled Scala Library is http://software.clapper.org/grizzled-scala/. Please see that page for complete details, including installation instructions.

    Definition Classes
    root
  • package io

    I/O-related classes and utilities.

    I/O-related classes and utilities. This package is distinguished from the grizzled.file package in that this package operates on already-open Java InputStream, OutputStream, Reader and Writer objects, and on Scala Source objects.

    See grizzled.file

    Definition Classes
    grizzled
  • Implicits
  • MultiSource
  • PartialReader
  • SourceReader
c

grizzled.io

MultiSource

class MultiSource extends Source

A MultiSource contains multiple scala.io.Source objects and satisfies reads from them serially. Once composed, a MultiSource can be used anywhere a Source is used.

Linear Supertypes
Source, Closeable, AutoCloseable, Iterator[Char], TraversableOnce[Char], GenTraversableOnce[Char], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MultiSource
  2. Source
  3. Closeable
  4. AutoCloseable
  5. Iterator
  6. TraversableOnce
  7. GenTraversableOnce
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MultiSource(sources: Source*)

    Version of constructor that takes multiple arguments, instead of a list.

    Version of constructor that takes multiple arguments, instead of a list.

    sources

    the sources to wrap

  2. new MultiSource(sources: List[Source])

    sources

    the sources to wrap

Type Members

  1. class GroupedIterator[B >: A] extends AbstractIterator[Seq[B]] with Iterator[Seq[B]]
    Definition Classes
    Iterator
  2. class LineIterator extends AbstractIterator[String] with Iterator[String]
    Definition Classes
    Source
  3. class Positioner extends AnyRef
    Definition Classes
    Source

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def ++[B >: Char](that: ⇒ GenTraversableOnce[B]): Iterator[B]
    Definition Classes
    Iterator
  4. def /:[B](z: B)(op: (B, Char) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  5. def :\[B](z: B)(op: (Char, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def addString(b: StringBuilder): StringBuilder
    Definition Classes
    TraversableOnce
  8. def addString(b: StringBuilder, sep: String): StringBuilder
    Definition Classes
    TraversableOnce
  9. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
    Definition Classes
    TraversableOnce
  10. def aggregate[B](z: ⇒ B)(seqop: (B, Char) ⇒ B, combop: (B, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def buffered: BufferedIterator[Char]
    Definition Classes
    Iterator
  13. def ch: Char
    Definition Classes
    Source
  14. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  15. def close(): Unit
    Definition Classes
    Source → Closeable → AutoCloseable
  16. def collect[B](pf: PartialFunction[Char, B]): Iterator[B]
    Definition Classes
    Iterator
    Annotations
    @migration
    Migration

    (Changed in version 2.8.0) collect has changed. The previous behavior can be reproduced with toSeq.

  17. def collectFirst[B](pf: PartialFunction[Char, B]): Option[B]
    Definition Classes
    TraversableOnce
  18. def contains(elem: Any): Boolean
    Definition Classes
    Iterator
  19. def copyToArray[B >: Char](xs: Array[B], start: Int, len: Int): Unit
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  20. def copyToArray[B >: Char](xs: Array[B]): Unit
    Definition Classes
    TraversableOnce → GenTraversableOnce
  21. def copyToArray[B >: Char](xs: Array[B], start: Int): Unit
    Definition Classes
    TraversableOnce → GenTraversableOnce
  22. def copyToBuffer[B >: Char](dest: Buffer[B]): Unit
    Definition Classes
    TraversableOnce
  23. def corresponds[B](that: GenTraversableOnce[B])(p: (Char, B) ⇒ Boolean): Boolean
    Definition Classes
    Iterator
  24. def count(p: (Char) ⇒ Boolean): Int
    Definition Classes
    TraversableOnce → GenTraversableOnce
  25. var descr: String
    Definition Classes
    Source
  26. def drop(n: Int): Iterator[Char]
    Definition Classes
    Iterator
  27. def dropWhile(p: (Char) ⇒ Boolean): Iterator[Char]
    Definition Classes
    Iterator
  28. def duplicate: (Iterator[Char], Iterator[Char])
    Definition Classes
    Iterator
  29. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  31. def exists(p: (Char) ⇒ Boolean): Boolean
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  32. def filter(p: (Char) ⇒ Boolean): Iterator[Char]
    Definition Classes
    Iterator
  33. def filterNot(p: (Char) ⇒ Boolean): Iterator[Char]
    Definition Classes
    Iterator
  34. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  35. def find(p: (Char) ⇒ Boolean): Option[Char]
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  36. def flatMap[B](f: (Char) ⇒ GenTraversableOnce[B]): Iterator[B]
    Definition Classes
    Iterator
  37. def fold[A1 >: Char](z: A1)(op: (A1, A1) ⇒ A1): A1
    Definition Classes
    TraversableOnce → GenTraversableOnce
  38. def foldLeft[B](z: B)(op: (B, Char) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  39. def foldRight[B](z: B)(op: (Char, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  40. def forall(p: (Char) ⇒ Boolean): Boolean
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  41. def foreach[U](f: (Char) ⇒ U): Unit
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  42. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  43. def getLines(): Iterator[String]
    Definition Classes
    Source
  44. def grouped[B >: Char](size: Int): GroupedIterator[B]
    Definition Classes
    Iterator
  45. def hasDefiniteSize: Boolean
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  46. def hasNext: Boolean
    Definition Classes
    Source → Iterator
  47. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  48. def indexOf[B >: Char](elem: B, from: Int): Int
    Definition Classes
    Iterator
  49. def indexOf[B >: Char](elem: B): Int
    Definition Classes
    Iterator
  50. def indexWhere(p: (Char) ⇒ Boolean, from: Int): Int
    Definition Classes
    Iterator
  51. def indexWhere(p: (Char) ⇒ Boolean): Int
    Definition Classes
    Iterator
  52. def isEmpty: Boolean
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  53. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  54. def isTraversableAgain: Boolean
    Definition Classes
    Iterator → GenTraversableOnce
  55. val iter: Iterator[Char]

    The actual iterator.

    The actual iterator.

    Attributes
    protected
    Definition Classes
    MultiSource → Source
  56. def length: Int
    Definition Classes
    Iterator
  57. def map[B](f: (Char) ⇒ B): Iterator[B]
    Definition Classes
    Iterator
  58. def max[B >: Char](implicit cmp: Ordering[B]): Char
    Definition Classes
    TraversableOnce → GenTraversableOnce
  59. def maxBy[B](f: (Char) ⇒ B)(implicit cmp: Ordering[B]): Char
    Definition Classes
    TraversableOnce → GenTraversableOnce
  60. def min[B >: Char](implicit cmp: Ordering[B]): Char
    Definition Classes
    TraversableOnce → GenTraversableOnce
  61. def minBy[B](f: (Char) ⇒ B)(implicit cmp: Ordering[B]): Char
    Definition Classes
    TraversableOnce → GenTraversableOnce
  62. def mkString: String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  63. def mkString(sep: String): String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  64. def mkString(start: String, sep: String, end: String): String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  65. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  66. var nerrors: Int
    Definition Classes
    Source
  67. def next(): Char
    Definition Classes
    Source → Iterator
  68. def nonEmpty: Boolean
    Definition Classes
    TraversableOnce → GenTraversableOnce
  69. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  70. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  71. var nwarnings: Int
    Definition Classes
    Source
  72. def padTo[A1 >: Char](len: Int, elem: A1): Iterator[A1]
    Definition Classes
    Iterator
  73. def partition(p: (Char) ⇒ Boolean): (Iterator[Char], Iterator[Char])
    Definition Classes
    Iterator
  74. def patch[B >: Char](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]
    Definition Classes
    Iterator
  75. def pos: Int
    Definition Classes
    Source
  76. def product[B >: Char](implicit num: Numeric[B]): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  77. def reduce[A1 >: Char](op: (A1, A1) ⇒ A1): A1
    Definition Classes
    TraversableOnce → GenTraversableOnce
  78. def reduceLeft[B >: Char](op: (B, Char) ⇒ B): B
    Definition Classes
    TraversableOnce
  79. def reduceLeftOption[B >: Char](op: (B, Char) ⇒ B): Option[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  80. def reduceOption[A1 >: Char](op: (A1, A1) ⇒ A1): Option[A1]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  81. def reduceRight[B >: Char](op: (Char, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  82. def reduceRightOption[B >: Char](op: (Char, B) ⇒ B): Option[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  83. def report(pos: Int, msg: String, out: PrintStream): Unit
    Definition Classes
    Source
  84. def reportError(pos: Int, msg: String, out: PrintStream): Unit
    Definition Classes
    Source
  85. def reportWarning(pos: Int, msg: String, out: PrintStream): Unit
    Definition Classes
    Source
  86. def reset(): Source

    Reset, returning a new source.

    Reset, returning a new source.

    Definition Classes
    MultiSource → Source
  87. def reversed: List[Char]
    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  88. def sameElements(that: Iterator[_]): Boolean
    Definition Classes
    Iterator
  89. def scanLeft[B](z: B)(op: (B, Char) ⇒ B): Iterator[B]
    Definition Classes
    Iterator
  90. def scanRight[B](z: B)(op: (Char, B) ⇒ B): Iterator[B]
    Definition Classes
    Iterator
  91. def seq: Iterator[Char]
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  92. def size: Int
    Definition Classes
    TraversableOnce → GenTraversableOnce
  93. def sizeHintIfCheap: Int
    Attributes
    protected[scala.collection]
    Definition Classes
    GenTraversableOnce
  94. def slice(from: Int, until: Int): Iterator[Char]
    Definition Classes
    Iterator
  95. def sliceIterator(from: Int, until: Int): Iterator[Char]
    Attributes
    protected
    Definition Classes
    Iterator
  96. def sliding[B >: Char](size: Int, step: Int): GroupedIterator[B]
    Definition Classes
    Iterator
  97. def span(p: (Char) ⇒ Boolean): (Iterator[Char], Iterator[Char])
    Definition Classes
    Iterator
  98. def sum[B >: Char](implicit num: Numeric[B]): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  99. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  100. def take(n: Int): Iterator[Char]
    Definition Classes
    Iterator
  101. def takeWhile(p: (Char) ⇒ Boolean): Iterator[Char]
    Definition Classes
    Iterator
  102. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, Char, Col[Char]]): Col[Char]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  103. def toArray[B >: Char](implicit arg0: ClassTag[B]): Array[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  104. def toBuffer[B >: Char]: Buffer[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  105. def toIndexedSeq: IndexedSeq[Char]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  106. def toIterable: Iterable[Char]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  107. def toIterator: Iterator[Char]
    Definition Classes
    Iterator → GenTraversableOnce
  108. def toList: List[Char]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  109. def toMap[T, U](implicit ev: <:<[Char, (T, U)]): Map[T, U]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  110. def toSeq: Seq[Char]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  111. def toSet[B >: Char]: Set[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  112. def toStream: Stream[Char]
    Definition Classes
    Iterator → GenTraversableOnce
  113. def toString(): String
    Definition Classes
    Iterator → AnyRef → Any
  114. def toTraversable: Traversable[Char]
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  115. def toVector: Vector[Char]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  116. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  117. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  118. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  119. def withClose(f: () ⇒ Unit): MultiSource.this.type
    Definition Classes
    Source
  120. def withDescription(text: String): MultiSource.this.type
    Definition Classes
    Source
  121. def withFilter(p: (Char) ⇒ Boolean): Iterator[Char]
    Definition Classes
    Iterator
  122. def withPositioning(pos: Positioner): MultiSource.this.type
    Definition Classes
    Source
  123. def withPositioning(on: Boolean): MultiSource.this.type
    Definition Classes
    Source
  124. def withReset(f: () ⇒ Source): MultiSource.this.type
    Definition Classes
    Source
  125. def zip[B](that: Iterator[B]): Iterator[(Char, B)]
    Definition Classes
    Iterator
  126. def zipAll[B, A1 >: Char, B1 >: B](that: Iterator[B], thisElem: A1, thatElem: B1): Iterator[(A1, B1)]
    Definition Classes
    Iterator
  127. def zipWithIndex: Iterator[(Char, Int)]
    Definition Classes
    Iterator

Inherited from Source

Inherited from Closeable

Inherited from AutoCloseable

Inherited from Iterator[Char]

Inherited from TraversableOnce[Char]

Inherited from GenTraversableOnce[Char]

Inherited from AnyRef

Inherited from Any

Ungrouped