Object

org.argus.jawa.compiler.compile.io

Hash

Related Doc: package io

Permalink

object Hash

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Hash
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(stream: InputStream): Array[Byte]

    Permalink

    Calculates the SHA-1 hash of the given stream, closing it when finished.

  5. def apply(url: URL): Array[Byte]

    Permalink

    Calculates the SHA-1 hash of the given resource.

  6. def apply(file: File): Array[Byte]

    Permalink

    Calculates the SHA-1 hash of the given file.

  7. def apply(as: Array[Byte]): Array[Byte]

    Permalink

    Calculates the SHA-1 hash of the given Array[Byte].

  8. def apply(s: String): Array[Byte]

    Permalink

    Calculates the SHA-1 hash of the given String.

  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def contentsIfLocal(uri: URI): Array[Byte]

    Permalink

    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.

  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def fromHex(hex: String): Array[Byte]

    Permalink

    Converts the provided hexadecimal representation hex to an array of bytes.

    Converts the provided hexadecimal representation hex to an array of bytes. The hexadecimal representation must have an even number of characters in the range 0-9, a-f, or A-F.

  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def halfHashString(s: String): String

    Permalink

    Computes the SHA-1 hash of s and truncates the hexadecimal representation of the hash via halve.

  18. def halve(s: String): String

    Permalink

    Truncates the last half of s if the string has at least four characters.

    Truncates the last half of s if the string has at least four characters. Otherwise, the original string is returned.

  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toHex(bytes: Array[Byte]): String

    Permalink

    Converts an array of bytes to a hexadecimal representation String.

  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. def trimHashString(s: String, i: Int): String

    Permalink

    Computes the SHA-1 hash of s and returns the first i characters of the hexadecimal representation of the hash.

  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped