Class ArchiveFormatDetector

Class ArchiveFormatDetector

Nom dels espais: Aspose.Zip.ArchiveInfo Assemblea: Aspose.Zip.dll (25.5.0)

Detecta un format d’arxiu i proporciona altra informació relacionada.

[Obsolete("Use static methods of ArchiveInstanceInfo class instead.")]
public sealed class ArchiveFormatDetector

Inheritance

object ArchiveFormatDetector

Membres heretats

object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

ArchiveFormatDetector()

Inicialitza una nova instància de la classe Aspose.Zip.ArchiveInfo.ArchiveFormatDetector.

[Obsolete("Use static methods of ArchiveInstanceInfo class instead.")]
public ArchiveFormatDetector()

Methods

GetFormatInfo(Tàrrega)

Formació de la informaci.

[Obsolete("Use static methods of ArchiveInstanceInfo class instead.")]
public ArchiveFormatInfo GetFormatInfo(string fileName)

Parameters

fileName string

El nom del fitxer de l’arxiu.

Returns

ArchiveFormatInfo

Informació sobre el format d’arxiu o nul si un format no s’ha detectat.

Exceptions

ArgumentNullException

fileName’ is null.

SecurityException

El client no té el permís d’accés requerit.

ArgumentException

El fileName’ és buit, només conté espais blancs, o conté caràcters invalidats.

UnauthorizedAccessException

L’accés al fitxer fileName’ és negat.

PathTooLongException

Per exemple, en les plataformes basades en Windows, els camins han de ser menys de 248 caràcters, i els noms de fitxers han de ser menys de 260 caràcters.

NotSupportedException

El fitxer a fileName’ conté una columna (:) al mig de la cadena.

IOException

Un error I/O es va produir durant l’obertura del fitxer.

GetFormatInfo(Stream)

Formació de la informaci.

[Obsolete("Use static methods of ArchiveInstanceInfo class instead.")]
public ArchiveFormatInfo GetFormatInfo(Stream stream)

Parameters

stream Stream

El flux de l’arxiu.

Returns

ArchiveFormatInfo

Informació sobre el format d’arxiu o nul si un format no s’ha detectat.

Exceptions

ArgumentNullException

stream’ is null.

ArgumentException

stream’ is not seekable.

 Català