Skip to content

TStringReader

Implement TTextReader for a single string.

Declaration

Source position: streamex.pp line 137

type

  TStringReader = class(TTextReader)
  public
    constructor Create(const AString: AnsiString; ABufferSize: Integer);
    constructor Create(const AString: AnsiString);
    destructor Destroy;
    procedure Reset;
    procedure Close;
    procedure ReadLine; overload;
  end;

Description

TStreamReader is a TTextReader descendent that takes a single string as the source of text data.

Methods

Member Visibility Description
Close public Close and possibly free the stream.
Create public Create a new instance of TStreamReader from a string.
Destroy public Free the TStringReader instance.
ReadLine public Read a line of text.
Reset public Reset the stream to its original position.
See all Methods

See also

Name Description
TTextReader Text reader class.