Skip to content

TASCII85EncoderStream

ASCII 85 encoding stream.

Declaration

Source position: ascii85.pp line 82

type

  TASCII85EncoderStream = class(TOwnerStream)
  public
    constructor Create;
    destructor Destroy;
    function Write : LongInt;
    property Width: Integer; {r}
    property Boundary: Boolean; {r}
  end;

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.

Properties

Member Visibility Description
Boundary read only public Is a boundary delineator written before and after the data.
Width read only public Width of the lines written to the data stream.
See all Properties

Methods

Member Visibility Description
Create public Create a new instance of TASCII85EncoderStream.
Destroy public Flushed the data to the output stream and cleans up the encoder instance.
Write public Write data encoded to the destination stream.
See all Methods

See also

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