Namespace: OpenEdge.Messaging
Type: Class StringDeserializer
Parent Classes:
Inherits: Progress.Lang.Object
Implements: OpenEdge.Messaging.IDeserializer


/*
Copyright © 2021 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Purpose:
This deserializer provides conversion of message data to standard longchar.
The default behavior is to assume the source memptr contains UTF-8 encoded data.
The deserializer will by default use utf-8 character encoding to convert the MEMPTR data.
This can be overridden at the topic or consumer level by setting a configuration option
ConsumerConfig:ValueDeserializerEncoding to the name of the code page that should be used
to decode the MEMPTR data.



Method Summary
  Options Name Purpose
  Progress.Lang.Object Deserialize (memptr, IDeserializationContext) /** Convert the memptr to an OpenEdge.Core.String containing the converted LONGCHAR data. @param data The MEMPTR containing the data to convert to a string @param ctx The deserialization context passed from the consumer @return Returns an OpenEdge.Core.String object containing a LONGCHAR with the converted data. */

Method Detail
Top

Progress.Lang.Object Deserialize (memptr, IDeserializationContext)

Purpose:
Convert the memptr to an OpenEdge.Core.String containing the converted LONGCHAR data.
Parameters:
data MEMPTR
  The MEMPTR containing the data to convert to a string
ctx OpenEdge.Messaging.IDeserializationContext
  The deserialization context passed from the consumer
Returns Progress.Lang.Object
  Returns an OpenEdge.Core.String object containing a LONGCHAR with the converted data.