Namespace: Consultingwerk
Class 
LongcharOutputStream Copy to Clipboard
Parent classes:
Inherits: Progress.IO.OutputStream
Implements: Consultingwerk.IOutputStream

File:LongcharOutputStream
Purpose:Output Stream with a LONGCHAR variables as the output
destination
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Thu Mar 07 22:11:30 CET 2013
Notes:Used for the OpenEdge native JSON serialization (OpenEdge 11.6+).
This implementation relies on the OpenEdge.Core.ByteBucket
Due to issues with the OpenEdge 11.6 implementation of that
class, we're using the OpenEdge 11.7 based implementation
also on OpenEdge 11.6.3 in the package OpenEdge.Core117



Top Method Summary
Options Name Purpose
+ LONGCHAR GetLongchar () Returns the current longchar data
+ Reset () Resets the stream by deleting the stored LONGCHAR data
+ Reset (character) Resets the stream by deleting the stored LONGCHAR data and sets the stream code page
+ INT64 Write (character) Writes text to the output destination
+ INT64 Write (longchar) Writes text to the output destination
+ INT64 Write (memptr, int64, int64) Writes data to the output destination
+ WriteLine (character) Writes text to the output destination and terminates it with a line break


Method Detail
Top

PUBLIC LONGCHAR GetLongchar ()

Purpose: Returns the current longchar data
Notes:

Returns LONGCHAR
The current longchar data
Top

PUBLIC Reset ()

Purpose: Resets the stream by deleting the stored LONGCHAR data
Notes:

Top

PUBLIC Reset (character)

Purpose: Resets the stream by deleting the stored LONGCHAR data and sets the
stream code page
Notes:

Parameters:
pcCodepage CHARACTER
The codepage to use for the stream data
Top

PUBLIC INT64 Write (character)

Purpose: Writes text to the output destination
Notes:

Parameters:
pcText CHARACTER
The text for the output
Returns INT64
The actual number of bytes written to the output stream
Top

PUBLIC INT64 Write (longchar)

Purpose: Writes text to the output destination
Notes:

Parameters:
pcText LONGCHAR
The text for the output
Returns INT64
The actual number of bytes written to the output stream
Top

PUBLIC INT64 Write (memptr, int64, int64)

Purpose: Writes data to the output destination
Notes:

Parameters:
pmSource MEMPTR
The memptr containing the source data
piOffset INT64
The start offset
piLength INT64
The number of bytes to write
Returns INT64
The actual number of bytes written to the output stream
Top

PUBLIC WriteLine (character)

Purpose: Writes text to the output destination and terminates it with a
line break
Notes:

Parameters:
pcText CHARACTER
The text for the output


©2006-2019 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.08.2019 23:28:00