Discuss this help topic in SecureBlackbox Forum

TElPGPReader.OnTemporaryStream

TElPGPReader     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


This event is fired when temporary stream is needed.

Declaration

[C#/Java]
    event TSBPGPTemporaryStreamEvent OnTemporaryStream;
    delegate void TSBPGPTemporaryStreamEvent(Object Sender, ref System.IO.Stream Stream, ref bool FreeOnFinish);

[VB.NET]
    Event OnTemporaryStream As TSBPGPTemporaryStreamEvent
    Delegate Sub TSBPGPTemporaryStreamEvent(ByVal Sender As Object, ByRef Stream As System.IO.Stream, ByRef FreeOnFinish As Boolean)

[Pascal]
    property OnTemporaryStream : TSBPGPTemporaryStreamEvent;
    TSBPGPTemporaryStreamEvent = procedure(Sender : TObject; var Stream : TStream; var FreeOnFinish : boolean) of object;

[C++]
    void get_OnTemporaryStream(TSBPGPTemporaryStreamEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnTemporaryStream(TSBPGPTemporaryStreamEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBPGPTemporaryStreamEvent)(void * _ObjectData, TObjectHandle Sender, TStreamHandle &Stream, int8_t &FreeOnFinish);

[PHP]
    TSBPGPTemporaryStreamEvent|callable|NULL get_OnTemporaryStream()
    void set_OnTemporaryStream(TSBPGPTemporaryStreamEvent|callable|NULL $Value)
    callable TSBPGPTemporaryStreamEvent(TObject $Sender, TStream &$Stream, bool &$FreeOnFinish)

Parameters

  • Stream - newly created stream to be used by the reader.
  • Filename - the name of the file to be read by the reader.
  • FreeOnFinish - If True - the Stream will be destroyed by TElPGPReader automatically.
    False - Stream will be freed manually by the application.

Description

    This event is currently fired by TElPGPReader when it encounters the TAR archive which should be unpacked. The temporary stream is used for storing the TAR file during unpacking. OnCreateOutputStream or OnRequestOutputFile event will be fired for each file in the TAR archive.

See also:     OnMultipleFilesFound     OnCreateOutputStream     OnRequestOutputFile    

Discuss this help topic in SecureBlackbox Forum