Z.Compression.Extensions Namespace

Assembly: Z.ExtensionMethods.WithNamespace.dll

Syntax

namespace Z.Compression.Extensions

String Extended Type

String Description
CompressGZip(string) A string extension method that compress the given string to GZip byte array.
CompressGZip(string, Encoding) A string extension method that compress the given string to GZip byte array.

FileInfo Extended Type

FileInfo Description
CreateGZip(FileInfo) A FileInfo extension method that creates a zip file.
CreateGZip(FileInfo, string) A FileInfo extension method that creates a zip file.
CreateGZip(FileInfo, FileInfo) A FileInfo extension method that creates a zip file.
ExtractGZipToDirectory(FileInfo) A FileInfo extension method that extracts the g zip to directory described by @this.
ExtractGZipToDirectory(FileInfo, string) A FileInfo extension method that extracts the g zip to directory described by @this.
ExtractGZipToDirectory(FileInfo, FileInfo) A FileInfo extension method that extracts the g zip to directory described by @this.
ExtractZipFileToDirectory(FileInfo, string) Extracts all the files in the specified zip archive to a directory on the file system
ExtractZipFileToDirectory(FileInfo, string, Encoding) Extracts all the files in the specified zip archive to a directory on the file system and uses the specified character encoding for entry names.
ExtractZipFileToDirectory(FileInfo, DirectoryInfo) Extracts all the files in the specified zip archive to a directory on the file system.
ExtractZipFileToDirectory(FileInfo, DirectoryInfo, Encoding) Extracts all the files in the specified zip archive to a directory on the file system and uses the specified character encoding for entry names.
OpenReadZipFile(FileInfo) The path to the archive to open, specified as a relative or absolute path. A relative path is interpreted as relative to the current working directory.
OpenZipFile(FileInfo, ZipArchiveMode) Opens a zip archive at the specified path and in the specified mode.
OpenZipFile(FileInfo, ZipArchiveMode, Encoding) Opens a zip archive at the specified path and in the specified mode.

DirectoryInfo Extended Type

DirectoryInfo Description
CreateZipFile(DirectoryInfo, string) Creates a zip archive that contains the files and directories from the specified directory.
CreateZipFile(DirectoryInfo, string, CompressionLevel, bool) Creates a zip archive that contains the files and directories from the specified directory, uses the specified compression level, and optionally includes the base directory.
CreateZipFile(DirectoryInfo, string, CompressionLevel, bool, Encoding) Creates a zip archive that contains the files and directories from the specified directory, uses the specified compression level and character encoding for entry names, and optionally includes the base directory.
CreateZipFile(DirectoryInfo, FileInfo) Creates a zip archive that contains the files and directories from the specified directory.
CreateZipFile(DirectoryInfo, FileInfo, CompressionLevel, bool) Creates a zip archive that contains the files and directories from the specified directory, uses the specified compression level, and optionally includes the base directory.
CreateZipFile(DirectoryInfo, FileInfo, CompressionLevel, bool, Encoding) Creates a zip archive that contains the files and directories from the specified directory, uses the specified compression level and character encoding for entry names, and optionally includes the base directory.

Byte[] Extended Type

Byte[] Description
DecompressGZip(byte[]) A byte[] extension method that decompress the byte array gzip to string.
DecompressGZip(byte[], Encoding) A byte[] extension method that decompress the byte array gzip to string.
Powered by ZZZ Projects .NET Documentation Generator 0.0.2 (Alpha)