ReaderTap

com.roundeights.hasher.ReaderTap
class ReaderTap(val digest: MutableDigest, reader: Reader, codec: Codec) extends Reader, Tap

A Reader that generates a hash

Attributes

Graph
Supertypes
trait Tap
trait Digest
class Reader
trait Closeable
trait AutoCloseable
trait Readable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def close: Unit

Attributes

Definition Classes
Reader -> Closeable -> AutoCloseable
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
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
override def mark(readlimit: Int): Unit

Attributes

Definition Classes
Reader
override def markSupported: Boolean

Attributes

Definition Classes
Reader
def mkString: String

Converts this reader to a string

Converts this reader to a string

Attributes

override def name: String

Returns the name of this algorithm

Returns the name of this algorithm

Attributes

Definition Classes
override def read(cbuf: Array[Char], off: Int, len: Int): Int

Attributes

Definition Classes
Reader
override def ready: Boolean

Attributes

Definition Classes
Reader
override def reset: Nothing

Attributes

Definition Classes
Reader

Inherited methods

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 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 read(x$0: Array[Char]): Int

Attributes

Inherited from:
Reader
def read(): Int

Attributes

Inherited from:
Reader
def read(x$0: CharBuffer): Int

Attributes

Inherited from:
Reader
def skip(x$0: Long): Long

Attributes

Inherited from:
Reader
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 transferTo(x$0: Writer): Long

Attributes

Inherited from:
Reader