Namespace: OpenEdge.Net.HTTP.Filter.Payload
Class
MessageWriter
Parent classes:
Inherits: Progress.IO.OutputStream
Implements: OpenEdge.Logging.ISupportLogging

Copyright (c) 2015-2018 by Progress Software Corporation. All rights reserved.
File:MessageWriter
Purpose:Writes content into an object, like
a JsonObject or String or Memptr or ByteBucket
Author(s):pjudge
Created:Thu Jun 25 15:41:58 EDT 2015




Method Summary
Options Name Purpose
Close () /** Closes the writer. */
LogMessage (character, integer)
LogMessage (character, LogLevelEnum)
Open () /** Opens the writer for output. Open/Close allows us to write the same message multiple times without requiring a new writer each time. */
INT64 Write (character) /* no-op */
INT64 Write (handle) /** Write data to/from the entity @param handle Data to write */
INT64 Write (longchar) /* no-op */
INT64 Write (memptr)
INT64 Write (memptr, int64, int64) /* no-op */
INT64 Write (Object) /** Write data to/from the entity @param Object Data to write */
INT64 WriteFileStream (FileInputStream) /** Reads the contents of a file and writes the bytes as memptr @param FileInputStream A valid file stream @return int64 The number of bytes read. */

Constructor Summary
Options Name Purpose
MessageWriter (Class) /** Default constructor. */
MessageWriter (Class, Object) /** Constructor. @param Class The type of the entity - pseudo-generics here. @param Object The 'real' entity being written */

Property Summary
Options Name Purpose
Progress.Lang.Object Entity
Progress.Lang.Class EntityType
OpenEdge.Logging.ILogWriter Logger


Method Detail
Top

Close ()

Purpose: Closes the writer.
Top

LogMessage (character, integer)

Parameters:
pcMessage CHARACTER
piLogLevel INTEGER
Top

LogMessage (character, LogLevelEnum)

Parameters:
pcMessage CHARACTER
poLogLevel OpenEdge.Logging.LogLevelEnum
Top

Open ()

Purpose: Opens the writer for output. Open/Close allows us to write the same message multiple
times without requiring a new writer each time.
Top

INT64 Write (character)

/* no-op
Parameters:
p0 CHARACTER
Returns INT64
Top

INT64 Write (handle)

Purpose: Write data to/from the entity
Parameters:
phData HANDLE
Returns INT64
Top

INT64 Write (longchar)

/* no-op
Parameters:
p0 LONGCHAR
Returns INT64
Top

INT64 Write (memptr)

Parameters:
p0 MEMPTR
Returns INT64
Top

INT64 Write (memptr, int64, int64)

/* no-op
Parameters:
p0 MEMPTR
p1 INT64
p2 INT64
Returns INT64
Top

INT64 Write (Object)

Purpose: Write data to/from the entity
Parameters:
poData Progress.Lang.Object
Returns INT64
Top

INT64 WriteFileStream (FileInputStream)

Purpose: Reads the contents of a file and writes the bytes as memptr
Parameters:
pStream Progress.IO.FileInputStream
Returns INT64
int64 The number of bytes read.


Constructor Detail
Top

MessageWriter (Class)

Purpose: Default constructor.
Parameters:
poType Progress.Lang.Class
Top

MessageWriter (Class, Object)

Purpose: Constructor.
Parameters:
poType Progress.Lang.Class
poEntity Progress.Lang.Object


Property Detail
Top

Progress.Lang.Object Entity

Returns Progress.Lang.Object
Top

Progress.Lang.Class EntityType

Returns Progress.Lang.Class
Top

OpenEdge.Logging.ILogWriter Logger

Returns OpenEdge.Logging.ILogWriter


Copyright © 2022 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7.15