C# Class 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.
Inheritance: IDisposable
显示文件 Open project: chris-tomich/Glyma Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
CopyBytes ( BinaryReader input, BinaryWriter output, int count ) : void
ParseCentralDirectory ( ) : List

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

GetFileStream() public method

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.
return Stream

ZipFile() public method

Initializes a new instance of the ZipFile class.
public ZipFile ( Stream zipFileStream ) : System
zipFileStream Stream The zip file stream.
return System