Class ArchiveFormatDetector
nazivni prostor: Aspose.Zip.ArchiveInfo Sastav: Aspose.Zip.dll (25.5.0)
Otkrije format arhiva i pruža druge povezane informacije.
[Obsolete("Use static methods of ArchiveInstanceInfo class instead.")]
public sealed class ArchiveFormatDetector
Inheritance
object ← ArchiveFormatDetector
naslijeđeni članovi
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
ArchiveFormatDetector()
Inicijalizira novu primjenu klase Aspose.Zip.ArchiveInfo.ArchiveFormatDetector.
[Obsolete("Use static methods of ArchiveInstanceInfo class instead.")]
public ArchiveFormatDetector()
Methods
GetFormatInfo(String)
Obavijest o formatu.
[Obsolete("Use static methods of ArchiveInstanceInfo class instead.")]
public ArchiveFormatInfo GetFormatInfo(string fileName)
Parameters
fileName
string
Naziv datoteke arhiva.
Returns
Informacije o arhivskom formatu ili nulu ako se format nije otkrio.
Exceptions
fileName’ is null.
Pozivač nema potrebnu dozvolu za pristup.
fileName’ je prazan, sadrži samo bijele prostore ili sadrži nevažeće znakove.
Pristup datoteci fileName’ je odbijen.
Na primjer, na Windows platformama, staze moraju biti manje od 248 znakova, a imena datoteke moraju biti manje od 260 znakova.
File u fileName’ sadrži kolona (:) u sredini trake.
I/O pogreška dogodila se prilikom otvaranja datoteke.
GetFormatInfo(Stream)
Obavijest o formatu.
[Obsolete("Use static methods of ArchiveInstanceInfo class instead.")]
public ArchiveFormatInfo GetFormatInfo(Stream stream)
Parameters
stream
Stream
Slijedeći članakSlijedeći članakArhiva datoteke.
Returns
Informacije o arhivskom formatu ili nulu ako se format nije otkrio.
Exceptions
stream’ is null.
stream’ is not seekable.