C# Class Axiom.FileSystem.ZipArchive

Specialization of the Archive class to allow reading of files from from a zip format source archive.
This archive format supports all archives compressed in the standard zip format, including iD pk3 files.
Inheritance: Axiom.FileSystem.Archive
Datei anzeigen Open project: WolfgangSt/axiom

Protected Properties

Property Type Description
_fileList List
_zipDir string
_zipFile string
_zipStream Ionic.Zip.ZipInputStream

Public Methods

Method Description
Exists ( string fileName ) : bool

Find ( string pattern, bool recursive ) : List

FindFileInfo ( string pattern, bool recursive ) : FileInfoList

List ( bool recursive ) : List

ListFileInfo ( bool recursive ) : FileInfoList

Load ( ) : void

Open ( string filename, bool readOnly ) : Stream

Unload ( ) : void

ZipArchive ( string name, string archType ) : System

Protected Methods

Method Description
findFiles ( string pattern, bool recursive, List simpleList, FileInfoList detailList ) : void

Utility method to retrieve all files in a directory matching pattern.

findFiles ( string pattern, bool recursive, List simpleList, FileInfoList detailList, string currentDir ) : void

Method Details

Exists() public method

public Exists ( string fileName ) : bool
fileName string
return bool

Find() public method

public Find ( string pattern, bool recursive ) : List
pattern string
recursive bool
return List

FindFileInfo() public method

public FindFileInfo ( string pattern, bool recursive ) : FileInfoList
pattern string
recursive bool
return FileInfoList

List() public method

public List ( bool recursive ) : List
recursive bool
return List

ListFileInfo() public method

public ListFileInfo ( bool recursive ) : FileInfoList
recursive bool
return FileInfoList

Load() public method

public Load ( ) : void
return void

Open() public method

public Open ( string filename, bool readOnly ) : Stream
filename string
readOnly bool
return Stream

Unload() public method

public Unload ( ) : void
return void

ZipArchive() public method

public ZipArchive ( string name, string archType ) : System
name string
archType string
return System

findFiles() protected method

Utility method to retrieve all files in a directory matching pattern.
protected findFiles ( string pattern, bool recursive, List simpleList, FileInfoList detailList ) : void
pattern string File pattern
recursive bool Whether to cascade down directories
simpleList List Populated if retrieving a simple list
detailList FileInfoList Populated if retrieving a detailed list
return void

findFiles() protected method

protected findFiles ( string pattern, bool recursive, List simpleList, FileInfoList detailList, string currentDir ) : void
pattern string
recursive bool
simpleList List
detailList FileInfoList
currentDir string The current directory relative to the base of the archive, for file naming
return void

Property Details

_fileList protected_oe property

protected List _fileList
return List

_zipDir protected_oe property

protected string _zipDir
return string

_zipFile protected_oe property

root location of the zip file.
protected string _zipFile
return string

_zipStream protected_oe property

protected ZipInputStream,Ionic.Zip _zipStream
return Ionic.Zip.ZipInputStream