C# Класс SilverlightMappingToolBasic.CompendiumMapProcessor.ZipFile

Easy unzipping of ZIP files.
Silverlight has built-in capabilities to extract files from a zip file. However, you need to know up front what files are in the zip to unzip them. This utility parses the headers and gives you access to the file names embedded in the zip. Furthermore, Silverlight unzipping has some limitations and doesn't support zip files where the file sizes and CRC is placed after the file data. This utility detects this case and re-arranges the bytes so Silverlight can read and uncompress the files.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetFileStream ( string filename ) : Stream

Gets the file stream for the specified file. Returns null if the file could not be found.

ZipFile ( Stream zipFileStream ) : System

Initializes a new instance of the ZipFile class.

Приватные методы

Метод Описание
CopyBytes ( BinaryReader input, BinaryWriter output, int count ) : void
ParseCentralDirectory ( ) : List

Описание методов

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

GetFileStream() публичный Метод

Gets the file stream for the specified file. Returns null if the file could not be found.
public GetFileStream ( string filename ) : Stream
filename string The filename.
Результат Stream

ZipFile() публичный Метод

Initializes a new instance of the ZipFile class.
public ZipFile ( Stream zipFileStream ) : System
zipFileStream Stream The zip file stream.
Результат System