Class ArchiveFormatDetector

Class ArchiveFormatDetector

Tên không gian: Aspose.Zip.ArchiveInfo Tổng hợp: Aspose.Zip.dll (25.5.0)

Phát hiện một định dạng lưu trữ và cung cấp thông tin liên quan khác.

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

Inheritance

object ArchiveFormatDetector

Thành viên thừa kế

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

Constructors

ArchiveFormatDetector()

Bắt đầu một trường hợp mới của lớp Aspose.Zip.ArchiveInfo.ArchiveFormatDetector.

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

Methods

GetFormatInfo(String)

Định dạng thông tin.

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

Parameters

fileName string

Tên file của file file.

Returns

ArchiveFormatInfo

Thông tin về định dạng lưu trữ hoặc không nếu định dạng không được phát hiện.

Exceptions

ArgumentNullException

fileName’ is null.

SecurityException

Người gọi không có giấy phép cần thiết để truy cập.

ArgumentException

fileName’ là trống, chỉ chứa không gian trắng, hoặc chứa các ký tự vô hiệu.

UnauthorizedAccessException

Truy cập vào tệp fileName’ bị từ chối.

PathTooLongException

Ví dụ, trên các nền tảng dựa trên Windows, các con đường phải nhỏ hơn 248 ký tự, và tên tập tin phải nhỏ hơn 260 ký tự.

NotSupportedException

File tại fileName’ chứa một cột (:) ở giữa dòng.

IOException

Một lỗi I/O xảy ra trong khi mở tệp.

GetFormatInfo(Stream)

Định dạng thông tin.

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

Parameters

stream Stream

dòng của file lưu trữ.

Returns

ArchiveFormatInfo

Thông tin về định dạng lưu trữ hoặc không nếu định dạng không được phát hiện.

Exceptions

ArgumentNullException

stream’ is null.

ArgumentException

stream’ is not seekable.

 Tiếng Việt