SevenZip/SevenZipExtractor.cs
/// <summary>
///   Opens the archive and throws exceptions or returns OperationResult.DataError if any error occurs.
/// </summary>
/// <param name = "archiveStream">The IInStream compliant class instance, that is, the input stream.</param>
/// <param name = "openCallback">The ArchiveOpenCallback instance.</param>
/// <returns>True if Open() succeeds; otherwise, false.</returns>
Opens the archive and throws exceptions or returns OperationResult.DataError if any error occurs.
Opens the archive and throws exceptions or returns OperationResult . DataError if any error occurs .
private bool OpenArchive(IInStream archiveStream,
                                 ArchiveOpenCallback openCallback)
        {
            if (!_opened)
            {
                if (OpenArchiveInner(archiveStream, openCallback) != OperationResult.Ok)
                {
                    if (!ThrowException(null, new SevenZipArchiveException()))
                    {
                        return false;
                    }
                }
                _volumeFileNames = new ReadOnlyCollection<string>(openCallback.VolumeFileNames);
                _opened = true;
            }
            return true;
        }
private bool OpenArchive ( IInStream archiveStream , ArchiveOpenCallback openCallback ) { if ( ! _opened ) { if ( OpenArchiveInner ( archiveStream , openCallback ) != OperationResult . Ok ) { if ( ! ThrowException ( null , new SevenZipArchiveException ( ) ) ) { return false ; } } _volumeFileNames = new ReadOnlyCollection < string > ( openCallback . VolumeFileNames ) ; _opened = true ; } return true ; }
Opens the archive and throws exceptions or returns OperationResult.DataError if any error occurs.
Opens the archive and throws exceptions or returns OperationResult . DataError if any error occurs .
True if Open() succeeds; otherwise, false.
True if Open () succeeds ; otherwise false .
archiveStream
IInStream
The IInStream compliant class instance, that is, the input stream.
The IInStream compliant class instance that is the input stream .
openCallback
ArchiveOpenCallback
The ArchiveOpenCallback instance.
The ArchiveOpenCallback instance .