Space Engineers
Classes | Public Member Functions | Static Public Member Functions | Properties | List of all members
VRage.Compression.MyZipArchive Class Reference

Class based on http://www.codeproject.com/Articles/209731/Csharp-use-Zip-archives-without-external-libraries. More...

Inheritance diagram for VRage.Compression.MyZipArchive:

Classes

struct  Enumerator
 

Public Member Functions

MyZipFileInfo AddFile (string path, CompressionMethodEnum compressionMethod=CompressionMethodEnum.Deflated, DeflateOptionEnum deflateOption=DeflateOptionEnum.Normal)
 
void DeleteFile (string name)
 
MyZipFileInfo GetFile (string name)
 
bool FileExists (string name)
 
bool DirectoryExists (string name)
 
void Dispose ()
 

Static Public Member Functions

static MyZipArchive OpenOnFile (string path, FileMode mode=FileMode.Open, FileAccess access=FileAccess.Read, FileShare share=FileShare.Read, bool streaming=false)
 
static MyZipArchive OpenOnStream (Stream stream, FileMode mode=FileMode.OpenOrCreate, FileAccess access=FileAccess.ReadWrite, bool streaming=false)
 
static bool IsHidden (FileInfo f, DirectoryInfo relativeTo)
 
static void CreateFromDirectory (string sourceDirectoryName, string destinationArchiveFileName, DeflateOptionEnum compressionLevel, bool includeBaseDirectory, string[] ignoredExtensions=null, bool includeHidden=true)
 
static void ExtractToDirectory (string sourceArchiveFileName, string destinationDirectoryName)
 

Properties

string ZipPath [get]
 
IEnumerable< string > FileNames [get]
 
Enumerator Files [get]
 

Detailed Description

Class based on http://www.codeproject.com/Articles/209731/Csharp-use-Zip-archives-without-external-libraries.

Definition at line 32 of file MyZipArchive.cs.

Member Function Documentation

MyZipFileInfo VRage.Compression.MyZipArchive.AddFile ( string  path,
CompressionMethodEnum  compressionMethod = CompressionMethodEnum.Deflated,
DeflateOptionEnum  deflateOption = DeflateOptionEnum.Normal 
)
inline

Definition at line 92 of file MyZipArchive.cs.

static void VRage.Compression.MyZipArchive.CreateFromDirectory ( string  sourceDirectoryName,
string  destinationArchiveFileName,
DeflateOptionEnum  compressionLevel,
bool  includeBaseDirectory,
string[]  ignoredExtensions = null,
bool  includeHidden = true 
)
inlinestatic

Definition at line 147 of file MyZipArchive.cs.

void VRage.Compression.MyZipArchive.DeleteFile ( string  name)
inline

Definition at line 97 of file MyZipArchive.cs.

bool VRage.Compression.MyZipArchive.DirectoryExists ( string  name)
inline

Definition at line 115 of file MyZipArchive.cs.

void VRage.Compression.MyZipArchive.Dispose ( )
inline

Definition at line 126 of file MyZipArchive.cs.

static void VRage.Compression.MyZipArchive.ExtractToDirectory ( string  sourceArchiveFileName,
string  destinationDirectoryName 
)
inlinestatic

Definition at line 181 of file MyZipArchive.cs.

bool VRage.Compression.MyZipArchive.FileExists ( string  name)
inline

Definition at line 109 of file MyZipArchive.cs.

MyZipFileInfo VRage.Compression.MyZipArchive.GetFile ( string  name)
inline

Definition at line 103 of file MyZipArchive.cs.

static bool VRage.Compression.MyZipArchive.IsHidden ( FileInfo  f,
DirectoryInfo  relativeTo 
)
inlinestatic

Definition at line 131 of file MyZipArchive.cs.

static MyZipArchive VRage.Compression.MyZipArchive.OpenOnFile ( string  path,
FileMode  mode = FileMode.Open,
FileAccess  access = FileAccess.Read,
FileShare  share = FileShare.Read,
bool  streaming = false 
)
inlinestatic

Definition at line 82 of file MyZipArchive.cs.

static MyZipArchive VRage.Compression.MyZipArchive.OpenOnStream ( Stream  stream,
FileMode  mode = FileMode.OpenOrCreate,
FileAccess  access = FileAccess.ReadWrite,
bool  streaming = false 
)
inlinestatic

Definition at line 87 of file MyZipArchive.cs.

Property Documentation

IEnumerable<string> VRage.Compression.MyZipArchive.FileNames
get

Definition at line 65 of file MyZipArchive.cs.

Enumerator VRage.Compression.MyZipArchive.Files
get

Definition at line 70 of file MyZipArchive.cs.

string VRage.Compression.MyZipArchive.ZipPath
get

Definition at line 49 of file MyZipArchive.cs.


The documentation for this class was generated from the following file: