LineBreakPreservingIterator

class LineBreakPreservingIterator(reader: Reader, bufferSize: Int) extends Iterator[String]
Companion
object
trait Iterator[String]
trait IterableOnceOps[String, [A] =>> Iterator[A], Iterator[String]]
trait IterableOnce[String]
class Object
trait Matchable
class Any

Type members

Inherited classlikes

class GroupedIterator[B >: A]
Inherited from
Iterator

Value members

Concrete methods

def findLBX(): Option[String]
def findLBXStartingReadFrom(startI: Int, concludeLBXSearchWithFinalChunk: String => String): Option[String]
override def hasNext: Boolean
Definition Classes
Iterator
override def next(): String
Definition Classes
Iterator

Inherited methods

@inline
final def ++[B >: String](xs: => IterableOnce[B]): Iterator[B]
Inherited from
Iterator
@inline
final def addString(b: StringBuilder): StringBuilder
Inherited from
IterableOnceOps
@inline
final def addString(b: StringBuilder, sep: String): StringBuilder
Inherited from
IterableOnceOps
def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
Inherited from
IterableOnceOps
def buffered: BufferedIterator[String]
Inherited from
Iterator
def collect[B](pf: PartialFunction[String, B]): Iterator[B]
Inherited from
Iterator
def collectFirst[B](pf: PartialFunction[String, B]): Option[B]
Inherited from
IterableOnceOps
def concat[B >: String](xs: => IterableOnce[B]): Iterator[B]
Inherited from
Iterator
def contains(elem: Any): Boolean
Inherited from
Iterator
def copyToArray[B >: String](xs: Array[B], start: Int, len: Int): Int
Inherited from
IterableOnceOps
@deprecatedOverriding("This should always forward to the 3-arg version of this method", "2.13.4")
def copyToArray[B >: String](xs: Array[B], start: Int): Int
Inherited from
IterableOnceOps
@deprecatedOverriding("This should always forward to the 3-arg version of this method", "2.13.4")
def copyToArray[B >: String](xs: Array[B]): Int
Inherited from
IterableOnceOps
def corresponds[B](that: IterableOnce[B])(p: (String, B) => Boolean): Boolean
Inherited from
IterableOnceOps
def count(p: String => Boolean): Int
Inherited from
IterableOnceOps
def distinct: Iterator[String]
Inherited from
Iterator
def distinctBy[B](f: String => B): Iterator[String]
Inherited from
Iterator
def drop(n: Int): Iterator[String]
Inherited from
Iterator
def dropWhile(p: String => Boolean): Iterator[String]
Inherited from
Iterator
def duplicate: (Iterator[String], Iterator[String])
Inherited from
Iterator
def exists(p: String => Boolean): Boolean
Inherited from
IterableOnceOps
def filter(p: String => Boolean): Iterator[String]
Inherited from
Iterator
def filterNot(p: String => Boolean): Iterator[String]
Inherited from
Iterator
def find(p: String => Boolean): Option[String]
Inherited from
IterableOnceOps
def flatMap[B](f: String => IterableOnce[B]): Iterator[B]
Inherited from
Iterator
def flatten[B](ev: String => IterableOnce[B]): Iterator[B]
Inherited from
Iterator
def fold[A1 >: String](z: A1)(op: (A1, A1) => A1): A1
Inherited from
IterableOnceOps
def foldLeft[B](z: B)(op: (B, String) => B): B
Inherited from
IterableOnceOps
def foldRight[B](z: B)(op: (String, B) => B): B
Inherited from
IterableOnceOps
def forall(p: String => Boolean): Boolean
Inherited from
IterableOnceOps
def foreach[U](f: String => U): Unit
Inherited from
IterableOnceOps
def grouped[B >: String](size: Int): GroupedIterator[B]
Inherited from
Iterator
def indexOf[B >: String](elem: B, from: Int): Int
Inherited from
Iterator
def indexOf[B >: String](elem: B): Int
Inherited from
Iterator
def indexWhere(p: String => Boolean, from: Int): Int
Inherited from
Iterator
@deprecatedOverriding("isEmpty is defined as !hasNext; override hasNext instead", "2.13.0")
override def isEmpty: Boolean
Definition Classes
Iterator -> IterableOnceOps
Inherited from
Iterator
def isTraversableAgain: Boolean
Inherited from
IterableOnceOps
@inline
final def iterator: Iterator[String]
Inherited from
Iterator
def knownSize: Int
Inherited from
IterableOnce
@inline
final def length: Int
Inherited from
Iterator
def map[B](f: String => B): Iterator[B]
Inherited from
Iterator
def max[B >: String](ord: Ordering[B]): String
Inherited from
IterableOnceOps
def maxBy[B](f: String => B)(cmp: Ordering[B]): String
Inherited from
IterableOnceOps
def maxByOption[B](f: String => B)(cmp: Ordering[B]): Option[String]
Inherited from
IterableOnceOps
def maxOption[B >: String](ord: Ordering[B]): Option[String]
Inherited from
IterableOnceOps
def min[B >: String](ord: Ordering[B]): String
Inherited from
IterableOnceOps
def minBy[B](f: String => B)(cmp: Ordering[B]): String
Inherited from
IterableOnceOps
def minByOption[B](f: String => B)(cmp: Ordering[B]): Option[String]
Inherited from
IterableOnceOps
def minOption[B >: String](ord: Ordering[B]): Option[String]
Inherited from
IterableOnceOps
@inline
final def mkString: String
Inherited from
IterableOnceOps
@inline
final def mkString(sep: String): String
Inherited from
IterableOnceOps
final def mkString(start: String, sep: String, end: String): String
Inherited from
IterableOnceOps
def nextOption(): Option[String]
Inherited from
Iterator
@deprecatedOverriding("nonEmpty is defined as !isEmpty; override isEmpty instead", "2.13.0")
def nonEmpty: Boolean
Inherited from
IterableOnceOps
def padTo[B >: String](len: Int, elem: B): Iterator[B]
Inherited from
Iterator
def partition(p: String => Boolean): (Iterator[String], Iterator[String])
Inherited from
Iterator
def patch[B >: String](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]
Inherited from
Iterator
def product[B >: String](num: Numeric[B]): B
Inherited from
IterableOnceOps
def reduce[B >: String](op: (B, B) => B): B
Inherited from
IterableOnceOps
def reduceLeft[B >: String](op: (B, String) => B): B
Inherited from
IterableOnceOps
def reduceLeftOption[B >: String](op: (B, String) => B): Option[B]
Inherited from
IterableOnceOps
def reduceOption[B >: String](op: (B, B) => B): Option[B]
Inherited from
IterableOnceOps
def reduceRight[B >: String](op: (String, B) => B): B
Inherited from
IterableOnceOps
def reduceRightOption[B >: String](op: (String, B) => B): Option[B]
Inherited from
IterableOnceOps
protected def reversed: Iterable[String]
Inherited from
IterableOnceOps
def sameElements[B >: String](that: IterableOnce[B]): Boolean
Inherited from
Iterator
def scanLeft[B](z: B)(op: (B, String) => B): Iterator[B]
Inherited from
Iterator
def size: Int
Inherited from
IterableOnceOps
def slice(from: Int, until: Int): Iterator[String]
Inherited from
Iterator
def sliding[B >: String](size: Int, step: Int): GroupedIterator[B]
Inherited from
Iterator
def span(p: String => Boolean): (Iterator[String], Iterator[String])
Inherited from
Iterator
def splitAt(n: Int): (Iterator[String], Iterator[String])
Inherited from
IterableOnceOps
def stepper[S <: Stepper[_]](shape: StepperShape[String, S]): S
Inherited from
IterableOnce
def sum[B >: String](num: Numeric[B]): B
Inherited from
IterableOnceOps
def take(n: Int): Iterator[String]
Inherited from
Iterator
def takeWhile(p: String => Boolean): Iterator[String]
Inherited from
Iterator
override def tapEach[U](f: String => U): Iterator[String]
Definition Classes
Iterator -> IterableOnceOps
Inherited from
Iterator
def to[C1](factory: Factory[String, C1]): C1
Inherited from
IterableOnceOps
def toArray[B >: String](ClassTag[B]): Array[B]
Inherited from
IterableOnceOps
@inline
final def toBuffer[B >: String]: Buffer[B]
Inherited from
IterableOnceOps
def toIndexedSeq: IndexedSeq[String]
Inherited from
IterableOnceOps
def toList: List[String]
Inherited from
IterableOnceOps
def toMap[K, V](ev: String <:< (K, V)): Map[K, V]
Inherited from
IterableOnceOps
def toSeq: Seq[String]
Inherited from
IterableOnceOps
def toSet[B >: String]: Set[B]
Inherited from
IterableOnceOps
override def toString(): String
Definition Classes
Iterator -> Any
Inherited from
Iterator
def toVector: Vector[String]
Inherited from
IterableOnceOps
def withFilter(p: String => Boolean): Iterator[String]
Inherited from
Iterator
def zip[B](that: IterableOnce[B]): Iterator[(String, B)]
Inherited from
Iterator
def zipAll[A1 >: String, B](that: IterableOnce[B], thisElem: A1, thatElem: B): Iterator[(A1, B)]
Inherited from
Iterator
def zipWithIndex: Iterator[(String, Int)]
Inherited from
Iterator

Deprecated and Inherited methods

@inline @deprecated("Use foldLeft instead of /:", "2.13.0")
final def /:[B](z: B)(op: (B, String) => B): B
Deprecated
Inherited from
IterableOnceOps
@inline @deprecated("Use foldRight instead of :\\", "2.13.0")
final def :\[B](z: B)(op: (String, B) => B): B
Deprecated
Inherited from
IterableOnceOps
@deprecated("`aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.", "2.13.0")
def aggregate[B](z: => B)(seqop: (B, String) => B, combop: (B, B) => B): B
Deprecated
Inherited from
IterableOnceOps
@inline @deprecated("Use `dest ++= coll` instead", "2.13.0")
final def copyToBuffer[B >: String](dest: Buffer[B]): Unit
Deprecated
Inherited from
IterableOnceOps
@inline @deprecated("hasDefiniteSize on Iterator is the same as isEmpty", "2.13.0")
final override def hasDefiniteSize: Boolean
Deprecated
Definition Classes
Iterator -> IterableOnceOps
Inherited from
Iterator
@deprecated("Call scanRight on an Iterable instead.", "2.13.0")
def scanRight[B](z: B)(op: (String, B) => B): Iterator[B]
Deprecated
Inherited from
Iterator
@deprecated("Iterator.seq always returns the iterator itself", "2.13.0")
Deprecated
Inherited from
Iterator
@inline @deprecated("Use .iterator instead of .toIterator", "2.13.0")
final def toIterator: Iterator[String]
Deprecated
Inherited from
IterableOnceOps
@inline @deprecated("Use .to(LazyList) instead of .toStream", "2.13.0")
final def toStream: Stream[String]
Deprecated
Inherited from
IterableOnceOps

Concrete fields

val buf: Array[Char]
var endOfStream: Boolean
var readPointer: Int

Anything from readPointer onwards, up to writePointer exclusive, can be read.

Anything from readPointer onwards, up to writePointer exclusive, can be read.

After a line is read, readPointer will be pointing to the next character immediately after the terminator of that line.

var writePointer: Int

Anything from writePointer onwards, up to readPointer exclusive, can be overwritten.

Anything from writePointer onwards, up to readPointer exclusive, can be overwritten.