InputStreamTap

com.roundeights.hasher.InputStreamTap
class InputStreamTap(val digest: MutableDigest, stream: InputStream) extends InputStream, BufferedTap

An InputStream that generates a hash

Attributes

Graph
Supertypes
trait BufferedTap
trait Tap
trait Digest
class InputStream
trait Closeable
trait AutoCloseable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def available: Int

Attributes

Definition Classes
InputStream
override def close: Unit

Attributes

Definition Classes
InputStream -> Closeable -> AutoCloseable
override def mark(readlimit: Int): Unit

Attributes

Definition Classes
InputStream
override def markSupported: Boolean

Attributes

Definition Classes
InputStream
override def read: Int

Attributes

Definition Classes
override def reset: Nothing

Attributes

Definition Classes
InputStream

Inherited methods

protected def addByteToDigest(byte: Byte): Byte

Adds a byte to the digest

Adds a byte to the digest

Attributes

Inherited from:
BufferedTap
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
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
override def name: String

Returns the name of this algorithm

Returns the name of this algorithm

Attributes

Definition Classes
Inherited from:
BufferedTap
def read(x$0: Array[Byte], x$1: Int, x$2: Int): Int

Attributes

Inherited from:
InputStream
def read(x$0: Array[Byte]): Int

Attributes

Inherited from:
InputStream
def readAllBytes(): Array[Byte]

Attributes

Inherited from:
InputStream
def readNBytes(x$0: Array[Byte], x$1: Int, x$2: Int): Int

Attributes

Inherited from:
InputStream
def readNBytes(x$0: Int): Array[Byte]

Attributes

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

Attributes

Inherited from:
InputStream
def skipNBytes(x$0: Long): Unit

Attributes

Inherited from:
InputStream
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: OutputStream): Long

Attributes

Inherited from:
InputStream