Sign in Join
FPDoc Onlineexperiment

TOwnerStream class

In unit Classes

Stream which uses a second stream as a source.

Declaration

pascal
TOwnerStream = class(TStream)

Inheritance

  1. TOwnerStream
  2. TStream
  3. TObject

Descends from it: TASCII85DecoderStream TASCII85EncoderStream TBase64DecodingStream TBase64EncodingStream TBlowFishStream TBufStream Tcustomzlibstream TIDEAStream TWindowedStream

Description

TOwnerStream can be used when creating stream chains such as when using encryption and compression streams. It keeps a reference to the source stream and will automatically free the source stream when ready (if the SourceOwner property is set to True).

See also

Properties

SourcepublicReference to the source stream.
SourceOwnerpublicIndicates whether the ownerstream owns it's source.

Methods

CreatepublicCreate a new instance of TOwnerStream.
DestroypublicDestroys the TOwnerStream instance and the source stream.

Fields

FOwnerprotected
FSourceprotected

Inherited

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.