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