ZipArchiveFileSystem

Inheritance: java.lang.Object, com.aspose.threed.FileSystem

public class ZipArchiveFileSystem extends FileSystem

指定された zip ファイルまたは zip ストリームへの読み取り専用アクセスを提供するファイルシステム。ファイルシステムはオープン/保存操作の後に破棄されます。Example: 以下のコードはファイルのインポート方法と、zip アーカイブファイル内の依存ファイルを提供する方法を示しています。

var inputFile = "input.fbx";
     var format = FileFormat.detect(inputFile);
     //create a load options instance and specify a zip file system
     var opt = format.createLoadOptions();
     opt.setFileSystem(new ZipArchiveFileSystem("textures.zip"));
     //load the file
     var scene = Scene.fromFile(inputFile, opt);

コンストラクタ

コンストラクタ説明
ZipArchiveFileSystem(Stream stream, String baseDir)ストリームを介して ZipArchiveFileSystem を構築します。
ZipArchiveFileSystem(Stream stream)ストリームを介して ZipArchiveFileSystem を構築します。
ZipArchiveFileSystem(String fileName)ファイル名を介して ZipArchiveFileSystem を構築します。

メソッド

メソッド説明
close()ZipArchiveFileSystem を破棄し、内部リソースを解放します。
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
readFile(String fileName, IOConfig options)読み取り用にファイルを開く
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)
writeFile(String fileName, IOConfig options)書き込み用にファイルを開く(このクラスでは実装されていません)。

ZipArchiveFileSystem(Stream stream, String baseDir)

public ZipArchiveFileSystem(Stream stream, String baseDir)

ストリームを介して ZipArchiveFileSystem を構築します。

Parameters:

パラメーター説明
ストリームcom.aspose.csporter.helpers.Stream
baseDirjava.lang.String

ZipArchiveFileSystem(Stream stream)

public ZipArchiveFileSystem(Stream stream)

ストリームを介して ZipArchiveFileSystem を構築します。

Parameters:

パラメーター説明
ストリームcom.aspose.csporter.helpers.Stream

ZipArchiveFileSystem(String fileName)

public ZipArchiveFileSystem(String fileName)

ファイル名を介して ZipArchiveFileSystem を構築します。

Parameters:

パラメーター説明
fileNamejava.lang.String

close()

public void close()

ZipArchiveFileSystem を破棄し、内部リソースを解放します。

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

パラメーター説明
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

readFile(String fileName, IOConfig options)

public Stream readFile(String fileName, IOConfig options)

読み取り用にファイルを開く

Parameters:

パラメーター説明
fileNamejava.lang.String
optionsIOConfig

Returns: com.aspose.csporter.helpers.Stream

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

パラメーター説明
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

パラメーター説明
arg0long
arg1int

writeFile(String fileName, IOConfig options)

public Stream writeFile(String fileName, IOConfig options)

書き込み用にファイルを開く(このクラスでは実装されていません)。

Parameters:

パラメーター説明
fileNamejava.lang.String
optionsIOConfig

Returns: com.aspose.csporter.helpers.Stream