TZippyReader.TryOpen Method
Tries to open a zip file and load the contents. If the file is invalid no Exception will be thrown. Note that other exceptions like a disk read error will still be raised. You can use this method instead of "if (TZippyReader.IsZipValid(stream)) TZippyReader.Open(stream)" as it will be faster because it doesn't have to read the file twice.
Syntax
Namespace: FlexCel.Core
public Boolean TryOpen(Stream aStream, Boolean aOwnsStream)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
aStream | Stream | Stream that contains the file to load. |
|
aOwnsStream | Boolean | If true, aStream will be destroyed when you destroy this object. If false, no attempt to free the Stream will be done |