Powered by Zoomin Software. For more details please contactZoomin

OpenEdge ABL API Reference

OpenEdge.Messaging.StringSerializer

  • Last Updated: January 15, 2026
  • 2 minute read
    • OpenEdge
    • Documentation
Namespace: OpenEdge.Messaging
Type: Class StringSerializer
Parent Classes:
Inherits: Progress.Lang.Object
Implements: OpenEdge.Messaging.ISerializer


/*
Copyright © 2021,2025 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. Serializing an invalid object or UNKNOWN will return UNKNOWN. @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. Serializing an invalid object or UNKNOWN will
return UNKNOWN.
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.


TitleResults for “How to create a CRG?”Also Available inAlert