+ Moved ownerstream to classes unit

This commit is contained in:
michael 2005-01-09 13:15:56 +00:00
parent 55e42ab72f
commit c598cf0a07

View File

@ -28,17 +28,6 @@ Const
Type
{ TOwnerStream }
TOwnerStream = Class(TStream)
Protected
FOwner : Boolean;
FSource : TStream;
Public
Constructor Create(ASource : TStream);
Destructor Destroy; override;
Property Source : TStream Read FSource;
Property SourceOwner : Boolean Read Fowner Write FOwner;
end;
{ TBufStream }
TBufStream = Class(TOwnerStream)
@ -287,19 +276,6 @@ begin
Inc(FTotalPos,Result);
end;
{ TOwnerStream }
constructor TOwnerStream.Create(ASource: TStream);
begin
FSource:=ASource;
end;
destructor TOwnerStream.Destroy;
begin
If FOwner then
FreeAndNil(FSource);
inherited Destroy;
end;
end.