C# 클래스 POLLaunch.DataBackup.ZipFileArchiver

파일 보기 프로젝트 열기: polserver/poltools 1 사용 예제들

공개 메소드들

메소드 설명
Create ( string zipFileName, ArrayList fileSpecs, System.Windows.Forms.ToolStripProgressBar &ProgressBar ) : void

Create archives based on specifications passed and internal state

Execute ( string newZipFilename, System.Windows.Forms.ToolStripProgressBar &ProgressBar ) : void

Handle Filenames and execute Creation of the Zip unless none was passed.

ProcessFile ( object sender, ScanEventArgs args ) : void

Callback for adding a new file.

ZipFileArchiver ( ) : System

Base constructor - initializes all fields to default values

비공개 메소드들

메소드 설명
BuildFileList ( ) : bool

Build the fileSpecs_ List of files to add to the archive.

GetBuffer ( ) : byte[]
GetCompressionRatio ( long packedSize, long unpackedSize ) : int

Calculate compression ratio as a percentage Doesnt allow for expansion (ratio > 100) as the resulting strings can get huge easily

InterpretExternalAttributes ( int operatingSystem, int attributes ) : string

Interpret attributes in conjunction with operatingSystem

IsNumeric ( string rhs ) : bool

Determine if string is numeric [0-9]+

MakeExternalAttributes ( FileInfo info ) : int

Make external attributes suitable for a ZipEntry

WildcardToRegex ( string wildcard ) : string

Convert a wildcard expression to a regular expression

메소드 상세

Create() 공개 메소드

Create archives based on specifications passed and internal state
public Create ( string zipFileName, ArrayList fileSpecs, System.Windows.Forms.ToolStripProgressBar &ProgressBar ) : void
zipFileName string
fileSpecs System.Collections.ArrayList
ProgressBar System.Windows.Forms.ToolStripProgressBar
리턴 void

Execute() 공개 메소드

Handle Filenames and execute Creation of the Zip unless none was passed.
public Execute ( string newZipFilename, System.Windows.Forms.ToolStripProgressBar &ProgressBar ) : void
newZipFilename string
ProgressBar System.Windows.Forms.ToolStripProgressBar
리턴 void

ProcessFile() 공개 메소드

Callback for adding a new file.
public ProcessFile ( object sender, ScanEventArgs args ) : void
sender object The scanner calling this delegate.
args ICSharpCode.SharpZipLib.Core.ScanEventArgs The event arguments.
리턴 void

ZipFileArchiver() 공개 메소드

Base constructor - initializes all fields to default values
public ZipFileArchiver ( ) : System
리턴 System