TStreamReader = class(TTextReader)
class PASCALIMPLEMENTATION TStreamReader : public TTextReader
Character stream reader.
TStreamReader is an implementation of a TTextReader that reads characters from a stream in a given character encoding.
This class is functionally similar to the Microsoft .NET class StreamReader. However, when you pass an instance of TStream instead of a filename to its creator, TStreamReader does not take ownership of this instance of TStream by default (you must manually call TStreamReader.OwnStream instead).