C# Class Kafka.Client.ZooKeeperIntegration.ZooKeeperStringSerializer

Zookeeper is able to store data in form of byte arrays. This interfacte is a bridge between those byte-array format and higher level objects.
Inheritance: IZooKeeperSerializer
Mostrar archivo Open project: precog/kafka

Public Properties

Property Type Description
Serializer ZooKeeperStringSerializer

Public Methods

Method Description
Deserialize ( byte bytes ) : object

Deserializes data using UTF-8 encoding

Serialize ( object obj ) : byte[]

Serializes data using UTF-8 encoding

Private Methods

Method Description
ZooKeeperStringSerializer ( ) : System

Prevents a default instance of the ZooKeeperStringSerializer class from being created.

Method Details

Deserialize() public method

Deserializes data using UTF-8 encoding
public Deserialize ( byte bytes ) : object
bytes byte /// The serialized data ///
return object

Serialize() public method

Serializes data using UTF-8 encoding
public Serialize ( object obj ) : byte[]
obj object /// The data to serialize ///
return byte[]

Property Details

Serializer public_oe static_oe property

public static ZooKeeperStringSerializer,Kafka.Client.ZooKeeperIntegration Serializer
return ZooKeeperStringSerializer