Class ArchiveFormatDetector

Class ArchiveFormatDetector

Nama dari : Aspose.Zip.ArchiveInfo Perhitungan: Aspose.Zip.dll (25.5.0)

Mengidentifikasi format arkib dan memberikan informasi terkait lainnya.

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

Inheritance

object ArchiveFormatDetector

anggota yang diwarisi

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

Constructors

ArchiveFormatDetector()

Initifikasi instans baru dari kelas Aspose.Zip.ArchiveInfo.ArchiveFormatDetector.

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

Methods

GetFormatInfo(String)

Dapatkan format info.

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

Parameters

fileName string

Nama file dari file archive.

Returns

ArchiveFormatInfo

Informasi tentang format arkib atau nol jika format tidak dideteksi.

Exceptions

ArgumentNullException

fileName’ is null.

SecurityException

Panggilan tidak memiliki izin yang diperlukan untuk mengakses.

ArgumentException

fileName’ kosong, hanya mengandung ruang putih, atau mengandung karakter yang tidak sah.

UnauthorizedAccessException

Akses ke file fileName’ ditolak.

PathTooLongException

Contohnya, pada platform berbasis Windows, jalur harus kurang dari 248 karakter, dan nama file harus kurang dari 260 karakter.

NotSupportedException

File di fileName’ mengandung kolom (:) di tengah string.

IOException

Kesalahan I/O terjadi saat membuka file.

GetFormatInfo(Stream)

Dapatkan format info.

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

Parameters

stream Stream

aliran dari file arkib.

Returns

ArchiveFormatInfo

Informasi tentang format arkib atau nol jika format tidak dideteksi.

Exceptions

ArgumentNullException

stream’ is null.

ArgumentException

stream’ is not seekable.

 Indonesia