Class TBrookStreamReader
Unit
Declaration
type TBrookStreamReader = class(TBrookTextReader)
Description
Line reader which uses stream as source of lines.
Hierarchy
- TObject
- TBrookTextReader
- TBrookStreamReader
Overview
Methods
constructor Create(AEncoding: TEncoding; AStream: TStream; ABufferSize: Cardinal; AOwnsStream: Boolean); reintroduce; overload; virtual; |
|
constructor Create(AEncoding: TEncoding; AStream: TStream); reintroduce; overload; virtual; |
|
constructor Create(AStream: TStream); reintroduce; overload; virtual; |
|
destructor Destroy; override; |
|
procedure Reset; override; |
|
procedure Close; override; |
|
function IsEOF: Boolean; override; |
|
procedure ReadBytes(out ALine: TBytes); overload; override; |
|
function ReadBytes: TBytes; overload; override; |
|
procedure Read(out ALine: string); overload; override; |
|
function Read: string; overload; override; |
Properties
property Stream: TStream read GetStream; |
|
property OwnsStream: Boolean read GetOwnsStream write SetOwnsStream; |
Description
Methods
constructor Create(AEncoding: TEncoding; AStream: TStream; ABufferSize: Cardinal; AOwnsStream: Boolean); reintroduce; overload; virtual; |
|
Creates an instance of Parameters |
constructor Create(AEncoding: TEncoding; AStream: TStream); reintroduce; overload; virtual; |
|
Creates an instance of Parameters |
constructor Create(AStream: TStream); reintroduce; overload; virtual; |
|
Creates an instance of Parameters |
destructor Destroy; override; |
|
Destroys an instance of |
procedure Reset; override; |
|
Resets the cursor to the beginning of the stream. |
procedure Close; override; |
|
Frees the stream if property |
function IsEOF: Boolean; override; |
|
Checks if the reader has reached the End-Of-File. Returns
|
procedure ReadBytes(out ALine: TBytes); overload; override; |
|
Reads a line as bytes. Parameters
|
function ReadBytes: TBytes; overload; override; |
|
Reads a line returning it as bytes. ReturnsLine read as bytes. |
procedure Read(out ALine: string); overload; override; |
|
Reads a line as static string. Parameters
|
function Read: string; overload; override; |
|
ReturnsLine |
Properties
property Stream: TStream read GetStream; |
|
Source |
property OwnsStream: Boolean read GetOwnsStream write SetOwnsStream; |
|
Generated by PasDoc 0.16.0.