Class IsoEntry

Class IsoEntry

Namespace: Aspose.Zip.Iso
Assembly: Aspose.Zip.dll (25.2.0)

Represents an entry (file or directory) within an ISO archive.

public abstract class IsoEntry : IArchiveFileEntry

Inheritance

objectIsoEntry

Implements

IArchiveFileEntry

Inherited Members

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

Properties

IsDirectory

Gets a value indicating whether the entry is a directory.

public bool IsDirectory { get; }

Property Value

bool

Length

Gets or sets creation date and time.

public long? Length { get; }

Property Value

long?

ModificationTime

Gets or sets last modified date and time.

public DateTime ModificationTime { get; }

Property Value

DateTime

Name

Gets the name of the entry.

public string Name { get; }

Property Value

string

Methods

Extract(string)

Extracts the entry to the filesystem by the path provided.

public FileInfo Extract(string path)

Parameters

path string

The path to destination file. If the file already exists, it will be overwritten.

Returns

FileInfo

System.IO.FileInfo instance containing extracted data.

Exceptions

ArgumentNullException

path is null.

SecurityException

The caller does not have the required permission to access.

ArgumentException

The path is empty, contains only white spaces, or contains invalid characters.

UnauthorizedAccessException

Access to file path is denied.

PathTooLongException

The specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters.

NotSupportedException

File at path contains a colon (:) in the middle of the string.

ArgumentNullException

path is null.

SecurityException

The caller does not have the required permission to access.

ArgumentException

The path is empty, contains only white spaces, or contains invalid characters.

UnauthorizedAccessException

Access to file path is denied.

PathTooLongException

The specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters.

NotSupportedException

File at path contains a colon (:) in the middle of the string.

FileNotFoundException

The file is not found.

DirectoryNotFoundException

The specified path is invalid, such as being on an unmapped drive.

IOException

The file is already open.

Extract(Stream)

Extracts the entry to the stream provided.

public void Extract(Stream destination)

Parameters

destination Stream

Destination stream. Must be writable.

Exceptions

ArgumentException

destination does not support writing.

NotSupportedException

Raises if the entry does not represent file.

ToString()

Returns a string that represents the current entry.

public override string ToString()

Returns

string

Name of the entry.

 English