TStreamAdapter.Create

Create a new instance of TStreamAdapter

Declaration

Source position: classesh.inc line 1321

public 
  constructor Create(Stream: TStream; Ownership: TStreamOwnership);

Description

Create creates a new instance of TStreamAdaptor. It initializes TStreamAdapter.Stream with Stream and initializes StreamOwnerShip with Ownership.

TStreamAdapter is an abstract class: descendants must be created that implement the actual functionality.

See also

Name Description
TStreamAdapter.Stream Stream on which adaptor works
StreamOwnerShip Determines what happens with the stream when the adaptor is freed