Packages

c

akka.util

ByteStringBuilder

final class ByteStringBuilder extends Builder[Byte, ByteString]

A mutable builder for efficiently creating a akka.util.ByteString.

The created ByteString is not automatically compacted.

Self Type
ByteStringBuilder
Source
ByteString.scala
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ByteStringBuilder
  2. Builder
  3. Growable
  4. Clearable
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ByteStringBuilder()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from ByteStringBuilder toany2stringadd[ByteStringBuilder] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ++=(bytes: ByteString): ByteStringBuilder.this.type
  5. final def ++=(xs: IterableOnce[Byte]): ByteStringBuilder.this.type
    Definition Classes
    Growable
    Annotations
    @inline()
  6. final def +=(elem: Byte): ByteStringBuilder.this.type
    Definition Classes
    Growable
    Annotations
    @inline()
  7. def ->[B](y: B): (ByteStringBuilder, B)
    Implicit
    This member is added by an implicit conversion from ByteStringBuilder toArrowAssoc[ByteStringBuilder] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  8. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def addAll(xs: IterableOnce[Byte]): ByteStringBuilder.this.type
    Definition Classes
    ByteStringBuilder → Growable
  10. def addAll(bytes: ByteString): ByteStringBuilder.this.type
  11. def addOne(elem: Byte): ByteStringBuilder.this.type
    Definition Classes
    ByteStringBuilder → Growable
  12. def append(bs: ByteString): ByteStringBuilder.this.type

    Java API: append a ByteString to this builder.

  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. def asOutputStream: OutputStream

    Directly wraps this ByteStringBuilder in an OutputStream.

    Directly wraps this ByteStringBuilder in an OutputStream. Write operations on the stream are forwarded to the builder.

  15. def clear(): Unit
    Definition Classes
    ByteStringBuilder → Builder → Clearable
  16. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  17. def ensuring(cond: (ByteStringBuilder) => Boolean, msg: => Any): ByteStringBuilder
    Implicit
    This member is added by an implicit conversion from ByteStringBuilder toEnsuring[ByteStringBuilder] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: (ByteStringBuilder) => Boolean): ByteStringBuilder
    Implicit
    This member is added by an implicit conversion from ByteStringBuilder toEnsuring[ByteStringBuilder] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean, msg: => Any): ByteStringBuilder
    Implicit
    This member is added by an implicit conversion from ByteStringBuilder toEnsuring[ByteStringBuilder] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: Boolean): ByteStringBuilder
    Implicit
    This member is added by an implicit conversion from ByteStringBuilder toEnsuring[ByteStringBuilder] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  23. def fillArray(len: Int)(fill: (Array[Byte], Int) => Unit): ByteStringBuilder.this.type
    Attributes
    protected
  24. final def fillByteBuffer(len: Int, byteOrder: ByteOrder)(fill: (ByteBuffer) => Unit): ByteStringBuilder.this.type
    Attributes
    protected
    Annotations
    @inline()
  25. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. def isEmpty: Boolean

    Tests whether this ByteStringBuilder is empty.

  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. def knownSize: Int
    Definition Classes
    Growable
  30. def length: Int
  31. def mapResult[NewTo](f: (ByteString) => NewTo): Builder[Byte, NewTo]
    Definition Classes
    Builder
  32. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. def nonEmpty: Boolean

    Tests whether this ByteStringBuilder is not empty.

  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  36. def putByte(x: Byte): ByteStringBuilder.this.type

    Add a single Byte to this builder.

  37. def putBytes(array: Array[Byte], start: Int, len: Int): ByteStringBuilder.this.type

    Add a number of Bytes from an array to this builder.

  38. def putBytes(array: Array[Byte]): ByteStringBuilder.this.type

    Add a number of Bytes from an array to this builder.

  39. def putDouble(x: Double)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a single Double to this builder.

  40. def putDoubles(array: Array[Double], start: Int, len: Int)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a number of Doubles from an array to this builder.

  41. def putDoubles(array: Array[Double])(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a number of Doubles from an array to this builder.

  42. def putFloat(x: Float)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a single Float to this builder.

  43. def putFloats(array: Array[Float], start: Int, len: Int)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a number of Floats from an array to this builder.

  44. def putFloats(array: Array[Float])(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a number of Floats from an array to this builder.

  45. def putInt(x: Int)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a single Int to this builder.

  46. def putInts(array: Array[Int], start: Int, len: Int)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a number of Ints from an array to this builder.

  47. def putInts(array: Array[Int])(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a number of Ints from an array to this builder.

  48. def putLong(x: Long)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a single Long to this builder.

  49. def putLongPart(x: Long, n: Int)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add the n least significant bytes of the given Long to this builder.

  50. def putLongs(array: Array[Long], start: Int, len: Int)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a number of Longs from an array to this builder.

  51. def putLongs(array: Array[Long])(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a number of Longs from an array to this builder.

  52. def putShort(x: Int)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a single Short to this builder.

  53. def putShorts(array: Array[Short], start: Int, len: Int)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a number of Shorts from an array to this builder.

  54. def putShorts(array: Array[Short])(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a number of Shorts from an array to this builder.

  55. def result(): ByteString
    Definition Classes
    ByteStringBuilder → Builder
  56. def sizeHint(len: Int): Unit
    Definition Classes
    ByteStringBuilder → Builder
  57. final def sizeHint(coll: IterableOnce[_], delta: Int): Unit
    Definition Classes
    Builder
  58. final def sizeHintBounded(size: Int, boundingColl: Iterable[_]): Unit
    Definition Classes
    Builder
  59. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  60. def toString(): String
    Definition Classes
    AnyRef → Any
  61. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  62. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  63. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. final def +=(elem1: Byte, elem2: Byte, elems: Byte*): ByteStringBuilder.this.type
    Definition Classes
    Growable
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use ++= aka addAll instead of varargs +=; infix operations with an operand of multiple args will be deprecated

  2. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  3. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from ByteStringBuilder toStringFormat[ByteStringBuilder] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  4. def [B](y: B): (ByteStringBuilder, B)
    Implicit
    This member is added by an implicit conversion from ByteStringBuilder toArrowAssoc[ByteStringBuilder] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Builder[Byte, ByteString]

Inherited from Growable[Byte]

Inherited from Clearable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromByteStringBuilder to any2stringadd[ByteStringBuilder]

Inherited by implicit conversion StringFormat fromByteStringBuilder to StringFormat[ByteStringBuilder]

Inherited by implicit conversion Ensuring fromByteStringBuilder to Ensuring[ByteStringBuilder]

Inherited by implicit conversion ArrowAssoc fromByteStringBuilder to ArrowAssoc[ByteStringBuilder]

Ungrouped