Class IsoArchive
名称: Aspose.Zip.Iso 組み合わせ: Aspose.Zip.dll (25.5.0)
ISO 9660 (ISO 9660) ファイルを表示します。
public sealed class IsoArchive : IArchive, IDisposable
Inheritance
Implements
相続人
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
sourceStream’ is null.
sourceStream’ is not seekable.
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
path’ is null.
通話者には、必要なアクセス許可はありません。
path’ は空っぽで、白いスペースのみが含まれ、または無効な文字が含まれています。
path" ファイルへのアクセスは拒否されます。
指定された path’, ファイル名, または両方ともシステム定義の最大長さを超えています. たとえば、Windows ベースのプラットフォームでは、パスは 248 文字未満で、ファイル名は 260 文字未満でなければなりません。
path’ のファイルには、列の真ん中のコロン(:)が含まれています。
ファイルは見つかりません。
指定されたルートは無効です、例えば、マッピングされていないドライブにあります。
ファイルはすでに開いています。
ファイルは短すぎる。
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
ISO入力が構成されています。
Exceptions
アーカイブは抽出に開かれています。
「名」はゼロまたは空っぽです。
CreateEntry(ストリップ、ストリップ)
ファイルをISO画像に追加します。
public IsoEntry CreateEntry(string name, string filePath)
Parameters
name
string
ファイルのパスワードはISOです。
filePath
string
ファイルの道。
Returns
ISO入力が構成されています。
Exceptions
filePath’ はゼロです。
filePath’ は空っぽで、白いスペースのみが含まれ、または不適切な文字が含まれています。
filePath" ファイルへのアクセスは拒否されます。
例えば、Windows ベースのプラットフォームでは、パスは 248 文字未満で、ファイル名は 260 文字未満でなければなりません。
filePath’ のファイルには、列の真ん中のコロン(:)が含まれています。
ファイルを開く際に I/O エラーが発生しました。
CreateEntry(ストリーム、ストリーム)
ファイルをISO画像に追加します。
public IsoEntry CreateEntry(string name, Stream source)
Parameters
name
string
ファイルのパスワードはISOです。
source
Stream
ファイルデータを含むストリーム
Returns
ISO入力が構成されています。
CreateEntry(ストレッチ)
ファイルをISO画像に追加します。
public IsoEntry CreateEntry(string name)
Parameters
name
string
ISOのディレクトリのコース。
Returns
ISO入力が構成されています。
Exceptions
「名」はゼロまたは空っぽです。
アーカイブは抽出に開かれています。
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
アーカイブが編集モードにあるときの流れ。
<コード 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
アーカイブが編集モードにいない場合
<コードクラス=“paramref”>パス" が null である場合にトロインします。
指定されたルートが無効である場合、例えば、マッピングされていないドライブにいる場合。
ファイルがすでにオープンしたときの流れ。
path" ファイルへのアクセスが拒否されます。
指定された 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
アーカイブが編集モードにいない場合
<コードクラス=“paramref”>stream’ が null であるときの流れ。
<コードクラス=“paramref”>stream’ が書くことができないときの流れ。