object ByteString
- Source
- ByteString.scala
- Alphabetic
- By Inheritance
- ByteString
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
final
class
ByteString1
extends ByteString with Serializable
An unfragmented ByteString.
-
final
class
ByteString1C
extends CompactByteString
A compact (unsliced) and unfragmented ByteString, implementation of ByteString1C.
A compact (unsliced) and unfragmented ByteString, implementation of ByteString1C.
- Annotations
- @SerialVersionUID()
-
final
class
ByteStrings
extends ByteString with Serializable
A ByteString with 2 or more fragments.
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
-
val
UTF_8: String
Standard "UTF-8" charset
-
def
apply(string: String, charset: String): ByteString
Creates a new ByteString by encoding a String with a charset.
-
def
apply(string: String): ByteString
Creates a new ByteString by encoding a String as UTF-8.
-
def
apply(bytes: ByteBuffer): ByteString
Creates a new ByteString by copying bytes from a ByteBuffer.
-
def
apply[T](bytes: T*)(implicit num: Integral[T]): ByteString
Creates a new ByteString by converting from integral numbers to bytes.
-
def
apply(bytes: Byte*): ByteString
Creates a new ByteString by copying bytes.
-
def
apply(bytes: Array[Byte]): ByteString
Creates a new ByteString by copying a byte array.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- implicit val canBuildFrom: CanBuildFrom[TraversableOnce[Byte], Byte, ByteString]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
createBuilder: ByteStringBuilder
Java API
- val empty: ByteString
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fromArray(array: Array[Byte], offset: Int, length: Int): ByteString
Creates a new ByteString by copying length bytes starting at offset from an Array.
-
def
fromArray(array: Array[Byte]): ByteString
Creates a new ByteString by copying a byte array.
-
def
fromByteBuffer(buffer: ByteBuffer): ByteString
Creates a new ByteString by copying bytes out of a ByteBuffer.
-
def
fromInts(array: Int*): ByteString
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()
-
def
fromString(string: String, charset: String): ByteString
Creates a new ByteString which will contain the representation of the given String in the given charset
-
def
fromString(string: String): ByteString
Creates a new ByteString which will contain the UTF-8 representation of the given String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newBuilder: ByteStringBuilder
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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( ... )