Sign in Join
FPDoc Onlineexperiment

TStreamReader class

In unit StreamEx

Implement TTextReader for streams.

Declaration

pascal
TStreamReader = class(TTextReader)

Inheritance

  1. TStreamReader
  2. TTextReader
  3. 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

Properties

BaseStreampublicThe stream with the text data.
OwnsStreampublicShould the stream be freed on close.

Methods

IsEofprotectedCheck if the end of the stream is reached.
CreatepublicCreate a new instance of TStreamReader from a stream.
DestroypublicDestroy the TStreamReader instance.
ResetpublicReset the stream to its original position.
ClosepublicClose and possibly free the stream.
ReadLinepublicRead a line of text.

Inherited

From TTextReader (2)

EndOfStream Eof

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.