[Overview][Constants][Classes][Index] Reference for unit 'streamex' (#fcl)

TStreamReader

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

Implement TTextReader for streams

Declaration

Source position: streamex.pp line 102

type TStreamReader = class(TTextReader)

public

  constructor Create();

  

Create a new instance of TStreamReader from a stream

  destructor Destroy; override;

  

Destroy the TStreamReader instance.

  procedure Reset; override;

  

Reset the stream to its original position

  procedure Close; override;

  

Close and possibly free the stream

  procedure ReadLine(); override; overload;

  

Read a line of text

  property BaseStream: TStream; [r]

  

The stream with the text data

  property OwnsStream: Boolean; [rw]

  

Should the stream be freed on close

end;

Inheritance

TStreamReader

  

Implement TTextReader for streams

|

TTextReader

  

Text reader class.

|

TObject

Description

TStreamReader is a TTextReader descendent that takes a stream as the source of text data. It can free the stream and the buffer size to use for reading data can be set.

See also

TTextReader

  

Text reader class.


Documentation generated on: May 14 2021