Class ArchiveFormatDetector

Class ArchiveFormatDetector

İsim alanı : Aspose.Zip.ArchiveInfo Toplama: Aspose.Zip.dll (25.5.0)

Bir arşiv biçimi tespit eder ve diğer ilgili bilgileri sağlar.

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

Inheritance

object ArchiveFormatDetector

mirasçı üyeleri

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

Constructors

ArchiveFormatDetector()

Aspose.Zip.ArchiveInfo.ArchiveFormatDetector sınıfının yeni bir örneğini başlatır.

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

Methods

GetFormatInfo(Sırt)

Bilgi formatı alınır.

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

Parameters

fileName string

Arşiv dosyasının fil adı.

Returns

ArchiveFormatInfo

Bir format tespit edilmemişse arşiv biçimi veya sıfır hakkında bilgi.

Exceptions

ArgumentNullException

fileName’ is null.

SecurityException

Müşteri, gerekli izinleri almamaktadır.

ArgumentException

fileName’ boş, yalnızca beyaz alanlar içerir veya geçersiz karakterler içerir.

UnauthorizedAccessException

fileName’ dosyasına erişim reddedilir.

PathTooLongException

Örneğin, Windows tabanlı platformlarda, yollar 248 karakterden az olmalıdır ve dosya isimleri 260 karakterden az olmalıdır.

NotSupportedException

fileName’ dosyası, satırın ortasında bir sütun (:) içerir.

IOException

Dosyayı açtığınızda bir I/O hatası meydana geldi.

GetFormatInfo(Stream)

Bilgi formatı alınır.

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

Parameters

stream Stream

Arşiv dosyasının akışı.

Returns

ArchiveFormatInfo

Bir format tespit edilmemişse arşiv biçimi veya sıfır hakkında bilgi.

Exceptions

ArgumentNullException

stream’ is null.

ArgumentException

stream’ is not seekable.

 Türkçe