SourceTap

com.roundeights.hasher.SourceTap
class SourceTap(val digest: MutableDigest, source: Source, codec: Codec) extends Source, BufferedTap

Wraps a source and generates a Source as data flows through it

Attributes

Graph
Supertypes
trait BufferedTap
trait Tap
trait Digest
class Source
trait Closeable
trait AutoCloseable
trait Iterator[Char]
trait IterableOnceOps[Char, Iterator, Iterator[Char]]
trait IterableOnce[Char]
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited classlikes

class GroupedIterator[B >: A](self: Iterator[B], size: Int, step: Int)

Attributes

Inherited from:
Iterator
Supertypes
class AbstractIterator[Seq[B]]
trait Iterator[Seq[B]]
trait IterableOnceOps[Seq[B], Iterator, Iterator[Seq[B]]]
trait IterableOnce[Seq[B]]
class Object
trait Matchable
class Any
Show all
class LineIterator()

Attributes

Inherited from:
Source
Supertypes
class AbstractIterator[String]
trait Iterator[String]
trait IterableOnceOps[String, Iterator, Iterator[String]]
trait IterableOnce[String]
class Object
trait Matchable
class Any
Show all
object NoPositioner

Attributes

Inherited from:
Source
Supertypes
class Positioner
class Object
trait Matchable
class Any
class Positioner(encoder: Position)

Attributes

Inherited from:
Source
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
Source
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
Source
Supertypes
class Positioner
class Object
trait Matchable
class Any

Value members

Inherited methods

final def ++[B >: Char](xs: => IterableOnce[B]): Iterator[B]

Attributes

Inherited from:
Iterator
protected def addByteToDigest(byte: Byte): Byte

Adds a byte to the digest

Adds a byte to the digest

Attributes

Inherited from:
BufferedTap
final def addString(b: StringBuilder): b.type

Attributes

Inherited from:
IterableOnceOps
final def addString(b: StringBuilder, sep: String): b.type

Attributes

Inherited from:
IterableOnceOps
def addString(b: StringBuilder, start: String, sep: String, end: String): b.type

Attributes

Inherited from:
IterableOnceOps
def buffered: BufferedIterator[Char]

Attributes

Inherited from:
Iterator
def bytes: Array[Byte]

Returns the raw bytes from the hash this digest generates

Returns the raw bytes from the hash this digest generates

Attributes

Inherited from:
Digest
def ch: Char

Attributes

Inherited from:
Source
def close(): Unit

Attributes

Inherited from:
Source
def collect[B](pf: PartialFunction[Char, B]): Iterator[B]

Attributes

Inherited from:
Iterator
def collectFirst[B](pf: PartialFunction[Char, B]): Option[B]

Attributes

Inherited from:
IterableOnceOps
def concat[B >: Char](xs: => IterableOnce[B]): Iterator[B]

Attributes

Inherited from:
Iterator
def contains(elem: Any): Boolean

Attributes

Inherited from:
Iterator
def copyToArray[B >: Char](xs: Array[B], start: Int, len: Int): Int

Attributes

Inherited from:
IterableOnceOps
def copyToArray[B >: Char](xs: Array[B], start: Int): Int

Attributes

Inherited from:
IterableOnceOps
def copyToArray[B >: Char](xs: Array[B]): Int

Attributes

Inherited from:
IterableOnceOps
def corresponds[B](that: IterableOnce[B])(p: (Char, B) => Boolean): Boolean

Attributes

Inherited from:
IterableOnceOps
def count(p: Char => Boolean): Int

Attributes

Inherited from:
IterableOnceOps
def distinct: Iterator[Char]

Attributes

Inherited from:
Iterator
def distinctBy[B](f: Char => B): Iterator[Char]

Attributes

Inherited from:
Iterator
def drop(n: Int): Iterator[Char]

Attributes

Inherited from:
Iterator
def dropWhile(p: Char => Boolean): Iterator[Char]

Attributes

Inherited from:
Iterator
def duplicate: (Iterator[Char], Iterator[Char])

Attributes

Inherited from:
Iterator
def exists(p: Char => Boolean): Boolean

Attributes

Inherited from:
IterableOnceOps
def filter(p: Char => Boolean): Iterator[Char]

Attributes

Inherited from:
Iterator
def filterNot(p: Char => Boolean): Iterator[Char]

Attributes

Inherited from:
Iterator
def find(p: Char => Boolean): Option[Char]

Attributes

Inherited from:
IterableOnceOps
def flatMap[B](f: Char => IterableOnce[B]): Iterator[B]

Attributes

Inherited from:
Iterator
def flatten[B](implicit ev: Char => IterableOnce[B]): Iterator[B]

Attributes

Inherited from:
Iterator
def fold[A1 >: Char](z: A1)(op: (A1, A1) => A1): A1

Attributes

Inherited from:
IterableOnceOps
def foldLeft[B](z: B)(op: (B, Char) => B): B

Attributes

Inherited from:
IterableOnceOps
def foldRight[B](z: B)(op: (Char, B) => B): B

Attributes

Inherited from:
IterableOnceOps
def forall(p: Char => Boolean): Boolean

Attributes

Inherited from:
IterableOnceOps
def foreach[U](f: Char => U): Unit

Attributes

Inherited from:
IterableOnceOps
def getLines(): Iterator[String]

Attributes

Inherited from:
Source
def grouped[B >: Char](size: Int): GroupedIterator[B]

Attributes

Inherited from:
Iterator
def hasNext: Boolean

Attributes

Inherited from:
Source
override def hash: Hash

Calculates the hash of the collected bytes so far

Calculates the hash of the collected bytes so far

Attributes

Definition Classes
Inherited from:
BufferedTap
override def hash_=(vs: Hash): Boolean

Determines whether the collected bytes compute to a given hash

Determines whether the collected bytes compute to a given hash

Attributes

Definition Classes
Inherited from:
BufferedTap
def hash_=(vs: Digest): Boolean

Determines whether the collected bytes compute to a given hash

Determines whether the collected bytes compute to a given hash

Attributes

Inherited from:
Digest
def hash_=(vs: Array[Byte]): Boolean

Determines whether the collected bytes compute to a given hash

Determines whether the collected bytes compute to a given hash

Attributes

Inherited from:
Digest
def hash_=(vs: String): Boolean

Determines whether the collected bytes compute to a given hash

Determines whether the collected bytes compute to a given hash

Attributes

Inherited from:
Digest
def hex: String

Returns this digest as a hex encoded string

Returns this digest as a hex encoded string

Attributes

Inherited from:
Digest
def indexOf[B >: Char](elem: B, from: Int): Int

Attributes

Inherited from:
Iterator
def indexOf[B >: Char](elem: B): Int

Attributes

Inherited from:
Iterator
def indexWhere(p: Char => Boolean, from: Int): Int

Attributes

Inherited from:
Iterator
override def isEmpty: Boolean

Attributes

Definition Classes
Iterator -> IterableOnceOps
Inherited from:
Iterator
def isTraversableAgain: Boolean

Attributes

Inherited from:
IterableOnceOps
final def iterator: Iterator[Char]

Attributes

Inherited from:
Iterator
def knownSize: Int

Attributes

Inherited from:
IterableOnce
final def length: Int

Attributes

Inherited from:
Iterator
def map[B](f: Char => B): Iterator[B]

Attributes

Inherited from:
Iterator
def max[B >: Char](implicit ord: Ordering[B]): Char

Attributes

Inherited from:
IterableOnceOps
def maxBy[B](f: Char => B)(implicit ord: Ordering[B]): Char

Attributes

Inherited from:
IterableOnceOps
def maxByOption[B](f: Char => B)(implicit ord: Ordering[B]): Option[Char]

Attributes

Inherited from:
IterableOnceOps
def maxOption[B >: Char](implicit ord: Ordering[B]): Option[Char]

Attributes

Inherited from:
IterableOnceOps
def min[B >: Char](implicit ord: Ordering[B]): Char

Attributes

Inherited from:
IterableOnceOps
def minBy[B](f: Char => B)(implicit ord: Ordering[B]): Char

Attributes

Inherited from:
IterableOnceOps
def minByOption[B](f: Char => B)(implicit ord: Ordering[B]): Option[Char]

Attributes

Inherited from:
IterableOnceOps
def minOption[B >: Char](implicit ord: Ordering[B]): Option[Char]

Attributes

Inherited from:
IterableOnceOps
final def mkString: String

Attributes

Inherited from:
IterableOnceOps
final def mkString(sep: String): String

Attributes

Inherited from:
IterableOnceOps
final def mkString(start: String, sep: String, end: String): String

Attributes

Inherited from:
IterableOnceOps
override def name: String

Returns the name of this algorithm

Returns the name of this algorithm

Attributes

Definition Classes
Inherited from:
BufferedTap
def next(): Char

Attributes

Inherited from:
Source
def nextOption(): Option[Char]

Attributes

Inherited from:
Iterator
def nonEmpty: Boolean

Attributes

Inherited from:
IterableOnceOps
def padTo[B >: Char](len: Int, elem: B): Iterator[B]

Attributes

Inherited from:
Iterator
def partition(p: Char => Boolean): (Iterator[Char], Iterator[Char])

Attributes

Inherited from:
Iterator
def patch[B >: Char](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]

Attributes

Inherited from:
Iterator
def pos: Int

Attributes

Inherited from:
Source
def product[B >: Char](implicit num: Numeric[B]): B

Attributes

Inherited from:
IterableOnceOps
def reduce[B >: Char](op: (B, B) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceLeft[B >: Char](op: (B, Char) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceLeftOption[B >: Char](op: (B, Char) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
def reduceOption[B >: Char](op: (B, B) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
def reduceRight[B >: Char](op: (Char, B) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceRightOption[B >: Char](op: (Char, B) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
def report(pos: Int, msg: String, out: PrintStream): Unit

Attributes

Inherited from:
Source
def reportError(pos: Int, msg: String, out: PrintStream): Unit

Attributes

Inherited from:
Source
def reportWarning(pos: Int, msg: String, out: PrintStream): Unit

Attributes

Inherited from:
Source
def reset(): Source

Attributes

Inherited from:
Source
protected def reversed: Iterable[Char]

Attributes

Inherited from:
IterableOnceOps
def sameElements[B >: Char](that: IterableOnce[B]): Boolean

Attributes

Inherited from:
Iterator
def scanLeft[B](z: B)(op: (B, Char) => B): Iterator[B]

Attributes

Inherited from:
Iterator
def size: Int

Attributes

Inherited from:
IterableOnceOps
def slice(from: Int, until: Int): Iterator[Char]

Attributes

Inherited from:
Iterator
def sliding[B >: Char](size: Int, step: Int): GroupedIterator[B]

Attributes

Inherited from:
Iterator
def span(p: Char => Boolean): (Iterator[Char], Iterator[Char])

Attributes

Inherited from:
Iterator
def splitAt(n: Int): (Iterator[Char], Iterator[Char])

Attributes

Inherited from:
IterableOnceOps
def stepper[S <: Stepper[_]](implicit shape: StepperShape[Char, S]): S

Attributes

Inherited from:
IterableOnce
def sum[B >: Char](implicit num: Numeric[B]): B

Attributes

Inherited from:
IterableOnceOps
def take(n: Int): Iterator[Char]

Attributes

Inherited from:
Iterator
def takeWhile(p: Char => Boolean): Iterator[Char]

Attributes

Inherited from:
Iterator
override def tapEach[U](f: Char => U): Iterator[Char]

Attributes

Definition Classes
Iterator -> IterableOnceOps
Inherited from:
Iterator
def to[C1](factory: Factory[Char, C1]): C1

Attributes

Inherited from:
IterableOnceOps
def toArray[B >: Char : ClassTag]: Array[B]

Attributes

Inherited from:
IterableOnceOps
final def toBuffer[B >: Char]: Buffer[B]

Attributes

Inherited from:
IterableOnceOps
def toIndexedSeq: IndexedSeq[Char]

Attributes

Inherited from:
IterableOnceOps
def toList: List[Char]

Attributes

Inherited from:
IterableOnceOps
def toMap[K, V](implicit ev: Char <:< (K, V)): Map[K, V]

Attributes

Inherited from:
IterableOnceOps
def toSeq: Seq[Char]

Attributes

Inherited from:
IterableOnceOps
def toSet[B >: Char]: Set[B]

Attributes

Inherited from:
IterableOnceOps
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Definition Classes
Digest -> Any
Inherited from:
Digest
def toVector: Vector[Char]

Attributes

Inherited from:
IterableOnceOps
def withClose(f: () => Unit): Source.this.type

Attributes

Inherited from:
Source
def withDescription(text: String): Source.this.type

Attributes

Inherited from:
Source
def withFilter(p: Char => Boolean): Iterator[Char]

Attributes

Inherited from:
Iterator
def withPositioning(pos: Positioner): Source.this.type

Attributes

Inherited from:
Source
def withPositioning(on: Boolean): Source.this.type

Attributes

Inherited from:
Source
def withReset(f: () => Source): Source.this.type

Attributes

Inherited from:
Source
def zip[B](that: IterableOnce[B]): Iterator[(Char, B)]

Attributes

Inherited from:
Iterator
def zipAll[A1 >: Char, B](that: IterableOnce[B], thisElem: A1, thatElem: B): Iterator[(A1, B)]

Attributes

Inherited from:
Iterator
def zipWithIndex: Iterator[(Char, Int)]

Attributes

Inherited from:
Iterator

Deprecated and Inherited methods

final def /:[B](z: B)(op: (B, Char) => B): B

Attributes

Deprecated
[Since version 2.13.0] Use foldLeft instead of /:
Inherited from:
IterableOnceOps
final def :\[B](z: B)(op: (Char, B) => B): B

Attributes

Deprecated
[Since version 2.13.0] Use foldRight instead of :\\
Inherited from:
IterableOnceOps
def aggregate[B](z: => B)(seqop: (B, Char) => B, combop: (B, B) => B): B

Attributes

Deprecated
[Since version 2.13.0] `aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.
Inherited from:
IterableOnceOps
final def copyToBuffer[B >: Char](dest: Buffer[B]): Unit

Attributes

Deprecated
[Since version 2.13.0] Use `dest ++= coll` instead
Inherited from:
IterableOnceOps
final override def hasDefiniteSize: Boolean

Attributes

Deprecated
[Since version 2.13.0] hasDefiniteSize on Iterator is the same as isEmpty
Definition Classes
Iterator -> IterableOnceOps
Inherited from:
Iterator
def scanRight[B](z: B)(op: (Char, B) => B): Iterator[B]

Attributes

Deprecated
[Since version 2.13.0] Call scanRight on an Iterable instead.
Inherited from:
Iterator
def seq: Iterator.this.type

Attributes

Deprecated
[Since version 2.13.0] Iterator.seq always returns the iterator itself
Inherited from:
Iterator
final def toIterator: Iterator[Char]

Attributes

Deprecated
[Since version 2.13.0] Use .iterator instead of .toIterator
Inherited from:
IterableOnceOps
final def toStream: Stream[Char]

Attributes

Deprecated
[Since version 2.13.0] Use .to(LazyList) instead of .toStream
Inherited from:
IterableOnceOps

Inherited fields

var descr: String

Attributes

Inherited from:
Source
var nerrors: Int

Attributes

Inherited from:
Source
var nwarnings: Int

Attributes

Inherited from:
Source