e-CryptIt Engine Xojo Plugin

AppleSingleDecoderStream.Finalize Method (console safe)

To finalize the decoding after streaming is done then you need to call the Finalize method, and this needs to be done before the Close method is called.

Finalize(
   finalFileName as String)

Parameters

finalFileName
Once streaming is done then the final file name is known. The final file name can be optained from the FinalFileName property of the class.
You are responsible for doing checks making sure the final file name does not allready exist at the location which the stream is decoding to before calling the Finalize method. If the A file by the same name as the original file name allready exists at the given location then the usual way to handle it is to add a numeric extension to the FinalFileName, like (2), (3), etc.

Remarks

Because of the nature of AppleSingle then after streaming (before closing) then you need to call the Finalize method and send down the desired final name for the file.

See Also

AppleSingleDecoderStream Class