LocalFileSystem
Inheritance: java.lang.Object, com.aspose.threed.FileSystem
public class LocalFileSystem extends FileSystem
Der LocalFileSystem wird die Lese-/Schreibvorgänge auf das lokale Verzeichnis abbilden. Beispiel: Der folgende Code zeigt, wie man eine Datei importiert und abhängige Dateien in einem angegebenen Verzeichnis bereitstellt
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 LocalFileSystem("textures/"));
//load the file
var scene = Scene.fromFile(inputFile, opt);
Konstruktoren
| Konstruktor | Beschreibung |
|---|---|
| LocalFileSystem(String directory) | Initialisiere ein neues LocalFileSystem mit dem angegebenen Basisverzeichnis. |
Methoden
| Methode | Beschreibung |
|---|---|
| close() | Entsorgen Sie das Dateisystem und geben Sie dessen Ressourcen frei. |
| equals(Object arg0) | |
| getClass() | |
| hashCode() | |
| notify() | |
| notifyAll() | |
| readFile(String fileName, IOConfig options) | Erstellen Sie einen Stream zum Lesen von Abhängigkeiten. |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) | |
| writeFile(String fileName, IOConfig options) | Erstellen Sie einen Stream zum Schreiben von Abhängigkeiten. |
LocalFileSystem(String directory)
public LocalFileSystem(String directory)
Initialisiere ein neues LocalFileSystem mit dem angegebenen Basisverzeichnis.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| Verzeichnis | java.lang.String |
close()
public void close()
Entsorgen Sie das Dateisystem und geben Sie dessen Ressourcen frei.
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| 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)
Erstellen Sie einen Stream zum Lesen von Abhängigkeiten.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| 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 | Typ | Beschreibung |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| arg0 | long | |
| arg1 | int |
writeFile(String fileName, IOConfig options)
public Stream writeFile(String fileName, IOConfig options)
Erstellen Sie einen Stream zum Schreiben von Abhängigkeiten.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| fileName | java.lang.String | |
| options | IOConfig |
Returns: com.aspose.csporter.helpers.Stream