ICSharpCode.SharpZipLib.Zip.ZipFile.ZipFile C# (CSharp) Méthode

ZipFile() public méthode

Opens a Zip file reading the given FileStream.
The supplied argument is null. /// An i/o error occurs. /// /// The file doesn't contain a valid zip archive. ///
public ZipFile ( FileStream file ) : System
file System.IO.FileStream The to read archive data from.
Résultat System
        public ZipFile(FileStream file) {
            if (file==null) {
                throw new ArgumentNullException("file");
            }

            if (!file.CanSeek) {
                throw new ArgumentException("Stream is not seekable", "file");
            }

            baseStream_=file;
            name_=file.Name;
            isStreamOwner=true;

            try {
                ReadEntries();
            } catch {
                DisposeInternal(true);
                throw;
            }
        }

Same methods

ZipFile::ZipFile ( ) : System
ZipFile::ZipFile ( Stream stream ) : System
ZipFile::ZipFile ( string name ) : System