Class Compress
Classe para compactação e descompactação de objetos, strings, etc...
Inheritance
System.Object
Compress
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Unimake.Business.DFe.Utility
Assembly: Unimake.Business.DFe.dll
Syntax
public class Compress
Methods
GZIPCompress(String)
Compactar string com GZIP
Declaration
public static string GZIPCompress(string conteudoXML)
Parameters
Type | Name | Description |
---|---|---|
System.String | conteudoXML | Conteúdo a ser compactado |
Returns
Type | Description |
---|---|
System.String | String do conteúdo compactado |
GZIPCompress(XmlDocument)
Compactar XMLDocument com GZIP
Declaration
public static string GZIPCompress(XmlDocument conteudoXML)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlDocument | conteudoXML | XML a ser compactado |
Returns
Type | Description |
---|---|
System.String | String do conteúdo compactado |
GZIPDecompress(String)
Descompactador string padrão GZIP
Declaration
public static string GZIPDecompress(string input)
Parameters
Type | Name | Description |
---|---|---|
System.String | input | Conteúdo a ser descompactado |
Returns
Type | Description |
---|---|
System.String | Retorna uma string com o conteúdo descompactado |