Object/Class

akka.util

ByteString

Related Docs: class ByteString | package util

Permalink

object ByteString

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

Type Members

  1. final class ByteString1 extends ByteString with Serializable

    Permalink

    An unfragmented ByteString.

  2. final class ByteString1C extends CompactByteString

    Permalink

    A compact (unsliced) and unfragmented ByteString, implementation of ByteString1C.

    A compact (unsliced) and unfragmented ByteString, implementation of ByteString1C.

    Annotations
    @SerialVersionUID()
  3. final class ByteStrings extends ByteString with Serializable

    Permalink

    A ByteString with 2 or more fragments.

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. val UTF_8: String

    Permalink

    Standard "UTF-8" charset

  5. def apply(string: String, charset: Charset): ByteString

    Permalink

    Creates a new ByteString by encoding a String with a charset.

  6. def apply(string: String, charset: String): ByteString

    Permalink

    Creates a new ByteString by encoding a String with a charset.

  7. def apply(string: String): ByteString

    Permalink

    Creates a new ByteString by encoding a String as UTF-8.

  8. def apply(bytes: ByteBuffer): ByteString

    Permalink

    Creates a new ByteString by copying bytes from a ByteBuffer.

  9. def apply[T](bytes: T*)(implicit num: Integral[T]): ByteString

    Permalink

    Creates a new ByteString by converting from integral numbers to bytes.

  10. def apply(bytes: Byte*): ByteString

    Permalink

    Creates a new ByteString by copying bytes.

  11. def apply(bytes: Array[Byte]): ByteString

    Permalink

    Creates a new ByteString by copying a byte array.

  12. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  13. implicit val canBuildFrom: CanBuildFrom[TraversableOnce[Byte], Byte, ByteString]

    Permalink
  14. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def createBuilder: ByteStringBuilder

    Permalink

    Java API

  16. val empty: ByteString

    Permalink
  17. val emptyByteString: ByteString

    Permalink

    Java API

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def fromArray(array: Array[Byte], offset: Int, length: Int): ByteString

    Permalink

    Creates a new ByteString by copying length bytes starting at offset from an Array.

  22. def fromArray(array: Array[Byte]): ByteString

    Permalink

    Creates a new ByteString by copying a byte array.

  23. def fromArrayUnsafe(array: Array[Byte], offset: Int, length: Int): ByteString

    Permalink

    Unsafe API: Use only in situations you are completely confident that this is what you need, and that you understand the implications documented below.

    Unsafe API: Use only in situations you are completely confident that this is what you need, and that you understand the implications documented below.

    Creates a ByteString without copying the passed in byte array, unlike other factory methods defined on ByteString. This method of creating a ByteString saves one array copy and allocation and therefore can lead to better performance, however it also means that one MUST NOT modify the passed in array, or unexpected immutable data structure contract-breaking behavior will manifest itself.

    This API is intended for users who have obtained an byte array from some other API, and want wrap it into an ByteArray, and from there on only use that reference (the ByteString) to operate on the wrapped data. For all other intents and purposes, please use the usual apply and create methods - which provide the immutability guarantees by copying the array.

  24. def fromArrayUnsafe(array: Array[Byte]): ByteString

    Permalink

    Unsafe API: Use only in situations you are completely confident that this is what you need, and that you understand the implications documented below.

    Unsafe API: Use only in situations you are completely confident that this is what you need, and that you understand the implications documented below.

    Creates a ByteString without copying the passed in byte array, unlike other factory methods defined on ByteString. This method of creating a ByteString saves one array copy and allocation and therefore can lead to better performance, however it also means that one MUST NOT modify the passed in array, or unexpected immutable data structure contract-breaking behavior will manifest itself.

    This API is intended for users who have obtained an byte array from some other API, and want wrap it into an ByteArray, and from there on only use that reference (the ByteString) to operate on the wrapped data. For all other intents and purposes, please use the usual apply and create methods - which provide the immutability guarantees by copying the array.

  25. def fromByteBuffer(buffer: ByteBuffer): ByteString

    Permalink

    Creates a new ByteString by copying bytes out of a ByteBuffer.

  26. def fromInts(array: Int*): ByteString

    Permalink

    JAVA API Creates a new ByteString by copying an int array by converting from integral numbers to bytes.

    JAVA API Creates a new ByteString by copying an int array by converting from integral numbers to bytes.

    Annotations
    @varargs()
  27. def fromString(string: String, charset: Charset): ByteString

    Permalink

    Creates a new ByteString which will contain the representation of the given String in the given charset

  28. def fromString(string: String, charset: String): ByteString

    Permalink

    Creates a new ByteString which will contain the representation of the given String in the given charset

  29. def fromString(string: String): ByteString

    Permalink

    Creates a new ByteString which will contain the UTF-8 representation of the given String

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

    Permalink
    Definition Classes
    AnyRef → Any
  31. def hashCode(): Int

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

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

    Permalink
    Definition Classes
    AnyRef
  34. def newBuilder: ByteStringBuilder

    Permalink
  35. final def notify(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
  38. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  39. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped