[Overview][Types][Classes][Index] | Reference for unit 'ascii85' (#fcl)

# TASCII85EncoderStream

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

ASCII 85 encoding stream

## Declaration

Source position: ascii85.pp line 76

`type TASCII85EncoderStream = class(TOwnerStream)`
`protected`
`procedure WriteBoundary;`
`procedure Flush;`
`procedure Encode;`
`public`
`constructor Create();` |  | Create a new instance of TASCII85EncoderStream
`destructor Destroy; override;` |  | Flushed the data to the output stream and cleans up the encoder instance.
`function Write(); override;` |  | Write data encoded to the destination stream
`property Width: Integer; [r]` |  | Width of the lines written to the data stream
`property Boundary: Boolean; [r]` |  | Is a boundary delineator written before and after the data
`end;`

## Inheritance

`TASCII85EncoderStream` |  | ASCII 85 encoding stream
`TOwnerStream`
`TStream`
`TObject`

## Description

TASCII85EncoderStream is the counterpart to the TASCII85DecoderStream decoder stream: what TASCII85EncoderStream encodes, can be decoded by TASCII85DecoderStream.

The encoder stream works using a destination stream: whatever data is written to the encoder stream is encoded and written to the destination stream. The stream must be passed on in the constructor.

Note that all encoded data is only written to the destination stream when the encoder stream is destroyed.

## See also

TASCII85EncoderStream.create |  | Create a new instance of TASCII85EncoderStream
TASCII85DecoderStream |  | ASCII 85 decoder stream.

The latest version of this document can be found at lazarus-ccr.sourceforge.net .