Class ArchiveFormatDetector

Class ArchiveFormatDetector

이름 공간 : Aspose.Zip.ArchiveInfo 모임: Aspose.Zip.dll (25.5.0)

그것은 아카이브 형식을 발견하고 다른 관련 정보를 제공합니다.

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

Inheritance

object ArchiveFormatDetector

상속 회원들

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

Constructors

ArchiveFormatDetector()

Aspose.Zip.ArchiveInfo.ArchiveFormatDetector 클래스의 새로운 사례를 시작합니다.

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

Methods

GetFormatInfo(스트리트)

정보를 형식으로 제공합니다.

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

Parameters

fileName string

아카이브 파일의 파일 이름.

Returns

ArchiveFormatInfo

형식이 발견되지 않은 경우 파일 형식 또는 null에 대한 정보.

Exceptions

ArgumentNullException

fileName’ is null.

SecurityException

호출자는 필요한 액세스 허가를 가지고 있지 않습니다.

ArgumentException

fileName’는 텅 비어 있고, 단지 흰색 공간만 포함하거나, 불법 문자를 포함합니다.

UnauthorizedAccessException

fileName’에 대한 액세스는 거부됩니다.

PathTooLongException

지정된 fileName’는 시스템에 의해 정의된 최대 길이를 초과합니다.예를 들어, Windows 기반 플랫폼에서는 경로가 248자 미만이어야하며 파일 이름은 260자 미만이어야합니다.

NotSupportedException

fileName’에 있는 파일에는 링의 중간에 있는 열(:)이 포함되어 있습니다.

IOException

파일을 열 때 I/O 오류가 발생했습니다.

GetFormatInfo(Stream)

정보를 형식으로 제공합니다.

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

Parameters

stream Stream

아카이브 파일의 흐름.

Returns

ArchiveFormatInfo

형식이 발견되지 않은 경우 파일 형식 또는 null에 대한 정보.

Exceptions

ArgumentNullException

stream’ is null.

ArgumentException

stream’ is not seekable.

 한국어