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
파일 보기 프로젝트 열기: chris-tomich/Glyma 1 사용 예제들

공개 메소드들

메소드 설명
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