ZipArchiveFileSystem
Inheritance: java.lang.Object, com.aspose.threed.FileSystem
public class ZipArchiveFileSystem extends FileSystem
Sistem file untuk menyediakan akses hanya-baca ke file zip atau aliran zip yang ditentukan. Sistem file akan dibuang setelah operasi buka/simpan. Example: Kode berikut menunjukkan cara mengimpor file, dan menyediakan file dependensi dalam file arsip 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);
Konstruktor
| Konstruktor | Deskripsi |
|---|---|
| ZipArchiveFileSystem(Stream stream, String baseDir) | Bangun sebuah ZipArchiveFileSystem melalui aliran. |
| ZipArchiveFileSystem(Stream stream) | Bangun sebuah ZipArchiveFileSystem melalui aliran. |
| ZipArchiveFileSystem(String fileName) | Bangun sebuah ZipArchiveFileSystem melalui nama file. |
Metode
| Metode | Deskripsi |
|---|---|
| close() | Buang ZipArchiveFileSystem dan lepaskan sumber daya internalnya. |
| equals(Object arg0) | |
| getClass() | |
| hashCode() | |
| notify() | |
| notifyAll() | |
| readFile(String fileName, IOConfig options) | Buka file untuk membaca |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) | |
| writeFile(String fileName, IOConfig options) | Buka file untuk menulis, tidak diimplementasikan dalam kelas ini. |
ZipArchiveFileSystem(Stream stream, String baseDir)
public ZipArchiveFileSystem(Stream stream, String baseDir)
Bangun sebuah ZipArchiveFileSystem melalui aliran.
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| aliran | com.aspose.csporter.helpers.Stream | |
| baseDir | java.lang.String |
ZipArchiveFileSystem(Stream stream)
public ZipArchiveFileSystem(Stream stream)
Bangun sebuah ZipArchiveFileSystem melalui aliran.
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| aliran | com.aspose.csporter.helpers.Stream |
ZipArchiveFileSystem(String fileName)
public ZipArchiveFileSystem(String fileName)
Bangun sebuah ZipArchiveFileSystem melalui nama file.
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| fileName | java.lang.String |
close()
public void close()
Buang ZipArchiveFileSystem dan lepaskan sumber daya internalnya.
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| arg0 | java.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)
Buka file untuk membaca
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| fileName | java.lang.String | |
| options | IOConfig |
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:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| arg0 | long | |
| arg1 | int |
writeFile(String fileName, IOConfig options)
public Stream writeFile(String fileName, IOConfig options)
Buka file untuk menulis, tidak diimplementasikan dalam kelas ini.
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| fileName | java.lang.String | |
| options | IOConfig |
Returns: com.aspose.csporter.helpers.Stream