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
Afficher le fichier Open project: WolfgangSt/axiom

Protected Properties

Свойство Type Description
_fileList List
_zipDir string
_zipFile string
_zipStream Ionic.Zip.ZipInputStream

Méthodes publiques

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

Méthodes protégées

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

public Exists ( string fileName ) : bool
fileName string
Résultat bool

Find() public méthode

public Find ( string pattern, bool recursive ) : List
pattern string
recursive bool
Résultat List

FindFileInfo() public méthode

public FindFileInfo ( string pattern, bool recursive ) : FileInfoList
pattern string
recursive bool
Résultat FileInfoList

List() public méthode

public List ( bool recursive ) : List
recursive bool
Résultat List

ListFileInfo() public méthode

public ListFileInfo ( bool recursive ) : FileInfoList
recursive bool
Résultat FileInfoList

Load() public méthode

public Load ( ) : void
Résultat void

Open() public méthode

public Open ( string filename, bool readOnly ) : Stream
filename string
readOnly bool
Résultat Stream

Unload() public méthode

public Unload ( ) : void
Résultat void

ZipArchive() public méthode

public ZipArchive ( string name, string archType ) : System
name string
archType string
Résultat System

findFiles() protected méthode

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
Résultat void

findFiles() protected méthode

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
Résultat void

Property Details

_fileList protected_oe property

protected List _fileList
Résultat List

_zipDir protected_oe property

protected string _zipDir
Résultat string

_zipFile protected_oe property

root location of the zip file.
protected string _zipFile
Résultat string

_zipStream protected_oe property

protected ZipInputStream,Ionic.Zip _zipStream
Résultat Ionic.Zip.ZipInputStream