Class IsoArchive

Class IsoArchive

名称: Aspose.Zip.Iso 組み合わせ: Aspose.Zip.dll (25.5.0)

ISO 9660 (ISO 9660) ファイルを表示します。

public sealed class IsoArchive : IArchive, IDisposable

Inheritance

object IsoArchive

Implements

IArchive , IDisposable

相続人

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

Constructors

IsoArchive()

Aspose.Zip.Iso.Isoアーカイブクラスの新しい例を開始し、空っぽのISOアーカイブを作成します。新しいファイルやディレクトリを追加します。

public IsoArchive()

Examples

次の例では、新しい空っぽのISOアーカイブを作成し、ファイルを追加する方法を示しています。

// Create a new empty ISO archive
using(IsoArchive isoArchive = new IsoArchive())
{
    // Add files to the ISO archive
    isoArchive.CreateEntry("example_file.txt", "path_to_file.txt");

    // Save the ISO archive to a file
    isoArchive.Save("new_archive.iso");
}

IsoArchive(ストリーム、IsoLoadOptions)

Aspose.Zip.Iso.ISOアーカイブクラスの新しい例を開始し、ファイルから抽出できる入力リストを構成します。

public IsoArchive(Stream sourceStream, IsoLoadOptions loadOptions = null)

Parameters

sourceStream Stream

アーカイブの情報源は、検索可能でなければならない。

loadOptions IsoLoadOptions

アーカイブをアップロードするオプション

Examples

下記の例では、すべての投稿をディレクトリに抽出する方法を示しています。

using (var archive = new IsoArchive(File.OpenRead("archive.iso")))
{ 
   archive.ExtractToDirectory("C:\\extracted");
}

Remarks

このプロデューサーは、入り口を無効にすることはありません。

Exceptions

ArgumentNullException

sourceStream’ is null.

ArgumentException

sourceStream’ is not seekable.

InvalidDataException

sourceStream’ is not a valid ISO archive.

IsoArchive(トップ > IsoLoadOptions)

Aspose.Zip.Iso.ISOアーカイブクラスの新しい例を開始し、ファイルから抽出できる入力リストを構成します。

public IsoArchive(string path, IsoLoadOptions loadOptions = null)

Parameters

path string

ファイルへの道のり。

loadOptions IsoLoadOptions

アーカイブをアップロードするオプション

Examples

下記の例では、すべての投稿をディレクトリに抽出する方法を示しています。

using (var archive = new IsoArchive("archive.iso")) 
{ 
   archive.ExtractToDirectory("C:\\extracted");
}

Remarks

このプロデューサーは、入り口を無効にすることはありません。

Exceptions

ArgumentNullException

path’ is null.

SecurityException

通話者には、必要なアクセス許可はありません。

ArgumentException

path’ は空っぽで、白いスペースのみが含まれ、または無効な文字が含まれています。

UnauthorizedAccessException

path" ファイルへのアクセスは拒否されます。

PathTooLongException

指定された path’, ファイル名, または両方ともシステム定義の最大長さを超えています. たとえば、Windows ベースのプラットフォームでは、パスは 248 文字未満で、ファイル名は 260 文字未満でなければなりません。

NotSupportedException

path’ のファイルには、列の真ん中のコロン(:)が含まれています。

FileNotFoundException

ファイルは見つかりません。

DirectoryNotFoundException

指定されたルートは無効です、例えば、マッピングされていないドライブにあります。

IOException

ファイルはすでに開いています。

EndOfStreamException

ファイルは短すぎる。

Properties

Entries

ファイルを構成する Aspose.Zip.Iso.IsoEntry タイプの入力を受け取ります。

public ReadOnlyCollection<isoentry> Entries { get; }

不動産価値

ReadOnlyCollection < IsoEntry >

Methods

CreateDirectory(ストレッチ)

ISO画像にディレクトリを追加します。

public IsoEntry CreateDirectory(string name)

Parameters

name string

ISOのディレクトリのコース。

Returns

IsoEntry

ISO入力が構成されています。

Exceptions

InvalidOperationException

アーカイブは抽出に開かれています。

ArgumentNullException

「名」はゼロまたは空っぽです。

CreateEntry(ストリップ、ストリップ)

ファイルをISO画像に追加します。

public IsoEntry CreateEntry(string name, string filePath)

Parameters

name string

ファイルのパスワードはISOです。

filePath string

ファイルの道。

Returns

IsoEntry

ISO入力が構成されています。

Exceptions

ArgumentNullException

filePath’ はゼロです。

ArgumentException

filePath’ は空っぽで、白いスペースのみが含まれ、または不適切な文字が含まれています。

UnauthorizedAccessException

filePath" ファイルへのアクセスは拒否されます。

PathTooLongException

例えば、Windows ベースのプラットフォームでは、パスは 248 文字未満で、ファイル名は 260 文字未満でなければなりません。

NotSupportedException

filePath’ のファイルには、列の真ん中のコロン(:)が含まれています。

IOException

ファイルを開く際に I/O エラーが発生しました。

CreateEntry(ストリーム、ストリーム)

ファイルをISO画像に追加します。

public IsoEntry CreateEntry(string name, Stream source)

Parameters

name string

ファイルのパスワードはISOです。

source Stream

ファイルデータを含むストリーム

Returns

IsoEntry

ISO入力が構成されています。

CreateEntry(ストレッチ)

ファイルをISO画像に追加します。

public IsoEntry CreateEntry(string name)

Parameters

name string

ISOのディレクトリのコース。

Returns

IsoEntry

ISO入力が構成されています。

Exceptions

ArgumentNullException

「名」はゼロまたは空っぽです。

InvalidOperationException

アーカイブは抽出に開かれています。

Dispose()

応用によって定義された課題を実行し、未管理資源のリリース、リリース、またはリセットに関連しています。

public void Dispose()

ExtractToDirectory(ストレッチ)

指定されたディレクトリにすべてのエントリーを抽出します。

public void ExtractToDirectory(string destinationDirectory)

Parameters

destinationDirectory string

ディレクトリは、エントリーを抽出します。

Examples

下記の例では、すべてのエントリーをディレクトリに抽出する方法を示しています。

using (var archive = new IsoArchive(File.OpenRead("archive.iso")))
{ 
   archive.ExtractToDirectory("C:\\extracted");
}

Exceptions

InvalidOperationException

アーカイブが編集モードにあるときの流れ。

ArgumentNullException

<コード class=“paramref”>destinationDirectory’ が null である場合に回転します。

Save(トップ > IsoSaveOptions)

ISO画像を指定されたルートに保存します。

public void Save(string path, IsoSaveOptions saveOptions = null)

Parameters

path string

ISO画像が保存されるコースです。

saveOptions IsoSaveOptions

ISOアーカイブを保存するオプション

Examples

以下の例では、ファイルにISOアーカイブを保存する方法を示しています。

// Create a new empty ISO archive
using(IsoArchive isoArchive = new IsoArchive())
{
    // Add files to the ISO archive
    isoArchive.CreateEntry("example_file.txt", "path_to_file.txt");

    // Save the ISO archive to a file
    isoArchive.Save("new_archive.iso");
}

Exceptions

InvalidOperationException

アーカイブが編集モードにいない場合

ArgumentNullException

<コードクラス=“paramref”>パス" が null である場合にトロインします。

DirectoryNotFoundException

指定されたルートが無効である場合、例えば、マッピングされていないドライブにいる場合。

IOException

ファイルがすでにオープンしたときの流れ。

UnauthorizedAccessException

path" ファイルへのアクセスが拒否されます。

PathTooLongException

指定された path’ がシステムによって定義された最大長さを超える場合の回転。

Save(ストリーム、ISOSaveOptions)

ISO画像を指定ストリームに保存します。

public void Save(Stream stream, IsoSaveOptions saveOptions = null)

Parameters

stream Stream

ISO画像が保存される流れ。

saveOptions IsoSaveOptions

ISOアーカイブを保存するオプション

Examples

下記の例では、ISOアーカイブをメモリストリームに保存する方法を示しています。

// Create a new empty ISO archive
using(IsoArchive isoArchive = new IsoArchive())
{
    // Add files to the ISO archive
    isoArchive.CreateEntry("example_file.txt", "path_to_file.txt");

    // Save the ISO archive to a memory stream
    isoArchive.Save(memoryStream);
}

Exceptions

InvalidOperationException

アーカイブが編集モードにいない場合

ArgumentNullException

<コードクラス=“paramref”>stream’ が null であるときの流れ。

ArgumentException

<コードクラス=“paramref”>stream’ が書くことができないときの流れ。

 日本語