class ByteArraySerializer extends BaseSerializer with ByteBufferSerializer
This is a special Serializer that Serializes and deserializes byte arrays only, (just returns the byte array unchanged/uncopied)
- Source
- Serializer.scala
- Alphabetic
- By Inheritance
- ByteArraySerializer
- ByteBufferSerializer
- BaseSerializer
- Serializer
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ByteArraySerializer(system: ExtendedActorSystem)
Value Members
-
final
val
SerializationIdentifiers: String("akka.actor.serialization-identifiers")
Configuration namespace of serialization identifiers in the
reference.conf
.Configuration namespace of serialization identifiers in the
reference.conf
.Each serializer implementation must have an entry in the following format:
akka.actor.serialization-identifiers."FQCN" = ID
whereFQCN
is fully qualified class name of the serializer implementation andID
is globally unique serializer identifier number.- Definition Classes
- BaseSerializer
-
def
fromBinary(buf: ByteBuffer, manifest: String): AnyRef
Produces an object from a
ByteBuffer
, with an optional type-hint; the class should be loaded using ActorSystem.dynamicAccess.Produces an object from a
ByteBuffer
, with an optional type-hint; the class should be loaded using ActorSystem.dynamicAccess.- Definition Classes
- ByteArraySerializer → ByteBufferSerializer
- Annotations
- @throws( classOf[NotSerializableException] )
-
def
fromBinary(bytes: Array[Byte], clazz: Option[Class[_]]): AnyRef
Produces an object from an array of bytes, with an optional type-hint; the class should be loaded using ActorSystem.dynamicAccess.
Produces an object from an array of bytes, with an optional type-hint; the class should be loaded using ActorSystem.dynamicAccess.
- Definition Classes
- ByteArraySerializer → Serializer
- Annotations
- @throws( classOf[NotSerializableException] )
-
final
def
fromBinary(bytes: Array[Byte], clazz: Class[_]): AnyRef
Java API: deserialize with type hint
Java API: deserialize with type hint
- Definition Classes
- Serializer
- Annotations
- @throws( classOf[NotSerializableException] )
-
final
def
fromBinary(bytes: Array[Byte]): AnyRef
Java API: deserialize without type hint
Java API: deserialize without type hint
- Definition Classes
- Serializer
-
val
identifier: Int
Globally unique serialization identifier configured in the
reference.conf
.Globally unique serialization identifier configured in the
reference.conf
.- Definition Classes
- BaseSerializer → Serializer
-
def
includeManifest: Boolean
Returns whether this serializer needs a manifest in the fromBinary method
Returns whether this serializer needs a manifest in the fromBinary method
- Definition Classes
- ByteArraySerializer → Serializer
-
val
system: ExtendedActorSystem
Actor system which is required by most serializer implementations.
Actor system which is required by most serializer implementations.
- Definition Classes
- ByteArraySerializer → BaseSerializer
-
def
toBinary(o: AnyRef, buf: ByteBuffer): Unit
Serializes the given object into the
ByteBuffer
.Serializes the given object into the
ByteBuffer
.- Definition Classes
- ByteArraySerializer → ByteBufferSerializer
-
def
toBinary(o: AnyRef): Array[Byte]
Serializes the given object into an Array of Byte
Serializes the given object into an Array of Byte
- Definition Classes
- ByteArraySerializer → Serializer