Discuss this help topic in SecureBlackbox Forum


TElPGPReader     See also     

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

This event is fired when temporary stream is needed.


    event TSBPGPTemporaryStreamEvent OnTemporaryStream;
    delegate void TSBPGPTemporaryStreamEvent(Object Sender, ref System.IO.Stream Stream, ref bool FreeOnFinish);

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

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

    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);

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

    TSBPGPTemporaryStreamEvent getOnTemporaryStream();
    void setOnTemporaryStream(TSBPGPTemporaryStreamEvent Value);
    TSBPGPTemporaryStreamEvent.Callback OnTemporaryStream = new TSBPGPTemporaryStreamEvent.Callback() {
        public void TSBPGPTemporaryStreamEventCallback(TObject arg0, TElPGPCreateStreamEventParams arg1) {


  • 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.


    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