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
- Alphabetic
- By Inheritance
- ByteStringBuilder
- Builder
- Growable
- Clearable
- AnyRef
- Any
- by CollectionsHaveToParArray
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ByteStringBuilder()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from ByteStringBuilder to any2stringadd[ByteStringBuilder] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
++=(xs: TraversableOnce[Byte]): ByteStringBuilder.this.type
- Definition Classes
- ByteStringBuilder → Growable
-
def
+=(elem: Byte): ByteStringBuilder.this.type
- Definition Classes
- ByteStringBuilder → Builder → Growable
-
def
+=(elem1: Byte, elem2: Byte, elems: Byte*): ByteStringBuilder.this.type
- Definition Classes
- Growable
-
def
->[B](y: B): (ByteStringBuilder, B)
- Implicit
- This member is added by an implicit conversion from ByteStringBuilder to ArrowAssoc[ByteStringBuilder] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
append(bs: ByteString): ByteStringBuilder.this.type
Java API: append a ByteString to this builder.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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.
-
def
clear(): Unit
- Definition Classes
- ByteStringBuilder → Builder → Growable → Clearable
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
ensuring(cond: (ByteStringBuilder) ⇒ Boolean, msg: ⇒ Any): ByteStringBuilder
- Implicit
- This member is added by an implicit conversion from ByteStringBuilder to Ensuring[ByteStringBuilder] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (ByteStringBuilder) ⇒ Boolean): ByteStringBuilder
- Implicit
- This member is added by an implicit conversion from ByteStringBuilder to Ensuring[ByteStringBuilder] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): ByteStringBuilder
- Implicit
- This member is added by an implicit conversion from ByteStringBuilder to Ensuring[ByteStringBuilder] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): ByteStringBuilder
- Implicit
- This member is added by an implicit conversion from ByteStringBuilder to Ensuring[ByteStringBuilder] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
fillArray(len: Int)(fill: (Array[Byte], Int) ⇒ Unit): ByteStringBuilder.this.type
- Attributes
- protected
-
final
def
fillByteBuffer(len: Int, byteOrder: ByteOrder)(fill: (ByteBuffer) ⇒ Unit): ByteStringBuilder.this.type
- Attributes
- protected
- Annotations
- @inline()
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ByteStringBuilder to StringFormat[ByteStringBuilder] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
isEmpty: Boolean
Tests whether this ByteStringBuilder is empty.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def length: Int
-
def
mapResult[NewTo](f: (ByteString) ⇒ NewTo): Builder[Byte, NewTo]
- Definition Classes
- Builder
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nonEmpty: Boolean
Tests whether this ByteStringBuilder is not empty.
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
putByte(x: Byte): ByteStringBuilder.this.type
Add a single Byte to this builder.
-
def
putBytes(array: Array[Byte], start: Int, len: Int): ByteStringBuilder.this.type
Add a number of Bytes from an array to this builder.
-
def
putBytes(array: Array[Byte]): ByteStringBuilder.this.type
Add a number of Bytes from an array to this builder.
-
def
putDouble(x: Double)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type
Add a single Double to this builder.
-
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.
-
def
putDoubles(array: Array[Double])(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type
Add a number of Doubles from an array to this builder.
-
def
putFloat(x: Float)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type
Add a single Float to this builder.
-
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.
-
def
putFloats(array: Array[Float])(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type
Add a number of Floats from an array to this builder.
-
def
putInt(x: Int)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type
Add a single Int to this builder.
-
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.
-
def
putInts(array: Array[Int])(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type
Add a number of Ints from an array to this builder.
-
def
putLong(x: Long)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type
Add a single Long to this builder.
-
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. -
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.
-
def
putLongs(array: Array[Long])(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type
Add a number of Longs from an array to this builder.
-
def
putShort(x: Int)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type
Add a single Short to this builder.
-
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.
-
def
putShorts(array: Array[Short])(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type
Add a number of Shorts from an array to this builder.
-
def
result(): ByteString
- Definition Classes
- ByteStringBuilder → Builder
-
def
sizeHint(len: Int): Unit
- Definition Classes
- ByteStringBuilder → Builder
-
def
sizeHint(coll: TraversableLike[_, _], delta: Int): Unit
- Definition Classes
- Builder
-
def
sizeHint(coll: TraversableLike[_, _]): Unit
- Definition Classes
- Builder
-
def
sizeHintBounded(size: Int, boundingColl: TraversableLike[_, _]): Unit
- Definition Classes
- Builder
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toParArray: ParArray[T]
- Implicit
- This member is added by an implicit conversion from ByteStringBuilder to CollectionsHaveToParArray[ByteStringBuilder, T] performed by method CollectionsHaveToParArray in scala.collection.parallel. This conversion will take place only if an implicit value of type (ByteStringBuilder) ⇒ GenTraversableOnce[T] is in scope.
- Definition Classes
- CollectionsHaveToParArray
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
→[B](y: B): (ByteStringBuilder, B)
- Implicit
- This member is added by an implicit conversion from ByteStringBuilder to ArrowAssoc[ByteStringBuilder] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc