Namespace: OpenEdge.Messaging
Type: Class StringSerializer
Parent Classes:
Inherits: Progress.Lang.Object
Implements: OpenEdge.Messaging.ISerializer


/*
Copyright © 2021 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Purpose:
This is the Default implementation of a String serializer. It provides a basic set of functionality
for converting longchar values that have been wrapped in an OpenEdge.Core.String object to a
MEMPTR.
The character encoding is by default UTF-8. The default encoding can be overridden by providing
providing a topic level configuration or a producer level configuration option.
@see ProducerConfig:ValueSerializerEncoding



Method Summary
  Options Name Purpose
  MEMPTR Serialize (Object, ISerializationContext) /** Convert an object to a MEMPTR. Only OpenEdge.Core.String is supported. An exception will be thrown if any other type of object is passed in. @param data An object that is to be serialized as a MEMPTR @param serializationContext A context object that is topic specific provided by the producer. @return A memptr representation of of the data. This data is sent by the producer over the network. */

Method Detail
Top

MEMPTR Serialize (Object, ISerializationContext)

Purpose:
Convert an object to a MEMPTR. Only OpenEdge.Core.String is supported. An exception
will be thrown if any other type of object is passed in.
Parameters:
data Progress.Lang.Object
  An object that is to be serialized as a MEMPTR
serializationContext OpenEdge.Messaging.ISerializationContext
  A context object that is topic specific provided by the producer.
Returns MEMPTR
  A memptr representation of of the data. This data is sent by the producer over the network.