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
Afficher le fichier Open project: chris-tomich/Glyma Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
CopyBytes ( BinaryReader input, BinaryWriter output, int count ) : void
ParseCentralDirectory ( ) : List

Method Details

Dispose() public méthode

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

GetFileStream() public méthode

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.
Résultat Stream

ZipFile() public méthode

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