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