Class Zip
Class to encrypt/decrypt data
Namespace: SuperOffice.Util
Assembly: SoCore.dll
Syntax
public class Zip : Object
Constructors
Zip(Stream)
Constructor with a stream to compress/decompress. The type of zip algorithm will be attempted detected. If none is detected, default will be GZip
Declaration
public Zip(Stream inputStream)
Parameters
Type | Name | Description |
---|---|---|
Stream | inputStream |
Zip(Stream, ZipType)
Constructor with a stream to compress/decompress, and a compression type
Declaration
public Zip(Stream inputStream, ZipType type)
Parameters
Type | Name | Description |
---|---|---|
Stream | inputStream | |
ZipType | type |
Properties
IsValidZip
Verify if input stream is a valid zip entry
Declaration
public bool IsValidZip { get; }
Property Value
Type | Description |
---|---|
Boolean |
ZipType
Type of zip compression to use
Declaration
public ZipType ZipType { get; set; }
Property Value
Type | Description |
---|---|
ZipType |
Methods
GetCompressedStream()
Return content of input compressed
Declaration
public Stream GetCompressedStream()
Returns
Type | Description |
---|---|
Stream |
GetDecompressedStream()
Return content of input uncompressed
Declaration
public Stream GetDecompressedStream()
Returns
Type | Description |
---|---|
Stream |
Extension Methods
EnumUtil.MapEnums<From, To>(From)