Click or drag to resize

ArchiveExtractor Class

Use this class to extract a .zip archive to disk.
Inheritance Hierarchy
SystemObject
  MicaSystems.UtilsArchiveExtractor

Namespace:  MicaSystems.Utils
Assembly:  MicaSystems.Utils (in MicaSystems.Utils.dll) Version: 1.0.0.0 (1.1.0.123)
Syntax
C#
public class ArchiveExtractor

The ArchiveExtractor type exposes the following members.

Constructors
  NameDescription
Public methodArchiveExtractor(FileInfo)
Creates an archive extractor.
Public methodArchiveExtractor(FileInfo, ArchiveEvent)
Creates an archive extractor.
Top
Properties
  NameDescription
Public propertyArchiveDescription
Gets the description of the archive.
Public propertyArchiveIdentifier
Gets the identifier of the archive.
Public propertyFileExtracted
Gets or sets the method to call when a file have been processed.
Public propertySkipErrorAccessFilesWithSameContent
Gets or sets a value indicating whether a file extraction should be skipped if an access error occurs and the file content is already corresponding. Ex : can allow to avoid errors when a file is in use.
Top
Methods
  NameDescription
Public methodStatic memberExtract
Extracts an archive to a specified folder.
Public methodExtractArchiveTo(DirectoryInfo)
Executes the extraction of the archive to the specified folder.
Public methodExtractArchiveTo(String)
Executes the extraction of the archive to the specified folder.
Public methodExtractArchiveTo(DirectoryInfo, ListArchiveExtractorFilePattern, ListArchiveExtractorMapping)
Executes the extraction of the archive to the specified folder.
Public methodExtractArchiveTo(DirectoryInfo, ListArchiveExtractorFilePattern, ListArchiveExtractorFilePattern, ListArchiveExtractorFilePattern, ListArchiveExtractorMapping)
Executes the extraction of the archive to the specified folder.
Public methodGetFileContent
Gets the content of a specified file in the archive. Returns null if the corresponding file cannot be found.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodAsT
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.)
Public Extension MethodEqualsAll
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.)
Public Extension MethodEqualsAny
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.)
Public Extension MethodGetString
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.)
Public Extension MethodIsGenericListOverloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.)
Public Extension MethodIsGenericList(Type)Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.)
Public Extension MethodSerializeOverloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerialize(String)Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerializeJsonOverloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(ListType)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(DataContractJsonSerializerSettings)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Top
See Also