object Hash
- Alphabetic
- By Inheritance
- Hash
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(stream: InputStream): Array[Byte]
Calculates the SHA-1 hash of the given stream, closing it when finished.
- def apply(url: URL): Array[Byte]
Calculates the SHA-1 hash of the given resource.
- def apply(file: File): Array[Byte]
Calculates the SHA-1 hash of the given file.
- def apply(as: Array[Byte]): Array[Byte]
Calculates the SHA-1 hash of the given Array[Byte].
- def apply(s: String): Array[Byte]
Calculates the SHA-1 hash of the given String.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def contentsIfLocal(uri: URI): Array[Byte]
If the URI represents a local file (the scheme is "file"), this method calculates the SHA-1 hash of the contents of that file.
If the URI represents a local file (the scheme is "file"), this method calculates the SHA-1 hash of the contents of that file. Otherwise, this methods calculates the SHA-1 hash of the normalized string representation of the URI.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromHex(hex: String): Array[Byte]
Converts the provided hexadecimal representation
hexto an array of bytes.Converts the provided hexadecimal representation
hexto an array of bytes. The hexadecimal representation must have an even number of characters in the range 0-9, a-f, or A-F. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def halfHashString(s: String): String
Computes the SHA-1 hash of
sand truncates the hexadecimal representation of the hash via halve. - def halve(s: String): String
Truncates the last half of
sif the string has at least four characters.Truncates the last half of
sif the string has at least four characters. Otherwise, the original string is returned. - def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toHex(bytes: Array[Byte]): String
Converts an array of
bytesto a hexadecimal representation String. - def toString(): String
- Definition Classes
- AnyRef → Any
- def trimHashString(s: String, i: Int): String
Computes the SHA-1 hash of
sand returns the firsticharacters of the hexadecimal representation of the hash. - final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()