Create a new instance of TStreamReader from a stream.
Source position: streamex.pp line 122
public constructor TStreamReader.Create( |
AStream: TStream; |
ABufferSize: Integer; |
AOwnsStream: Boolean |
); virtual; |
AStream: TStream |
); virtual; |
AStream |
|
Stream to use as source of text data. |
ABufferSize |
|
Buffer size to use for read buffer. |
AOwnsStream |
|
Should the stream be freed when the textreader is freed. |
AStream |
|
Stream to use as source of text data. |
Create initializes a TStreamReader using the provided AStream. It will allocate a buffer of ABufferSize bytes for faster reading of data. If no buffer size is specified, BUFFER_SIZE will be used. If the ABufferSize argument is less than MIN_BUFFER_SIZE, then MIN_BUFFER_SIZE bytes will be used.
If AOwnsStream is true, the stream will be freed when the TStreamReader instance is freed. If omitted, its value is assumed to be False.
If AStream is Nil, an #rtl.sysutils.EArgumentException exception will be raised.
|
Destroy the TStreamReader instance. |
|