ZipArchiveFileSystem

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

public class ZipArchiveFileSystem extends FileSystem

Système de fichiers fournissant un accès en lecture seule au fichier zip ou au flux zip spécifié. Le système de fichiers sera libéré après l’opération d’ouverture/enregistrement. Exemple: Le code suivant montre comment importer un fichier et fournir les fichiers dépendants dans un fichier d’archive 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);

Constructeurs

ConstructeurDescription
ZipArchiveFileSystem(Stream stream, String baseDir)Construire un ZipArchiveFileSystem via un flux.
ZipArchiveFileSystem(Stream stream)Construire un ZipArchiveFileSystem via un flux.
ZipArchiveFileSystem(String fileName)Construire un ZipArchiveFileSystem via un nom de fichier.

Méthodes

MéthodeDescription
close()Libérer le ZipArchiveFileSystem et libérer ses ressources internes.
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
readFile(String fileName, IOConfig options)Ouvrir le fichier en lecture
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)
writeFile(String fileName, IOConfig options)Ouvrir le fichier en écriture, non implémenté dans cette classe.

ZipArchiveFileSystem(Stream stream, String baseDir)

public ZipArchiveFileSystem(Stream stream, String baseDir)

Construire un ZipArchiveFileSystem via un flux.

Parameters:

ParamètreTypeDescription
fluxcom.aspose.csporter.helpers.Stream
baseDirjava.lang.String

ZipArchiveFileSystem(Stream stream)

public ZipArchiveFileSystem(Stream stream)

Construire un ZipArchiveFileSystem via un flux.

Parameters:

ParamètreTypeDescription
fluxcom.aspose.csporter.helpers.Stream

ZipArchiveFileSystem(String fileName)

public ZipArchiveFileSystem(String fileName)

Construire un ZipArchiveFileSystem via un nom de fichier.

Parameters:

ParamètreTypeDescription
fileNamejava.lang.String

close()

public void close()

Libérer le ZipArchiveFileSystem et libérer ses ressources internes.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParamètreTypeDescription
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)

Ouvrir le fichier en lecture

Parameters:

ParamètreTypeDescription
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:

ParamètreTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParamètreTypeDescription
arg0long
arg1int

writeFile(String fileName, IOConfig options)

public Stream writeFile(String fileName, IOConfig options)

Ouvrir le fichier en écriture, non implémenté dans cette classe.

Parameters:

ParamètreTypeDescription
fileNamejava.lang.String
optionsIOConfig

Returns: com.aspose.csporter.helpers.Stream