Unit 'streamex' Package
[Overview][Constants][Classes][Index] [#fcl]

TTextReader

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

Text reader class.

Declaration

Source position: streamex.pp line 95

type TTextReader = class(TObject)

public

  constructor Create; virtual;

  

Instantiate a new instance.

  procedure Reset; virtual; abstract;

  

Reset the reader to the start position.

  procedure Close; virtual; abstract;

  

Close the text data stream.

  procedure ReadLine();

  

Read a line of text.

  property Eof: Boolean; [r]

  

Check whether the end of the text data is returned.

  property EndOfStream: Boolean; [r]

end;

Inheritance

TTextReader

  

Text reader class.

|

TObject

Description

TTextReader is an abstract class that provides a line-oriented reading API. It allows to read data from streams or memory blocks as if one was using regular pascal Read or ReadLn operations: the ReadLine procedure. Several descendents of this class exist which implement the reader interface for several sources of text data: TStreamReader, TFileReader, TStringReader.

See also

TStreamReader

  

Implement TTextReader for streams.

TFileReader

  

Implement TTextReader for files.

TStringReader

  

Implement TTextReader for a single string.

ReadLine

  

Read a line of text.


Documentation generated on: Jul 20 2024