DummyFileSystem

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

public class DummyFileSystem extends FileSystem

रीड/राइट ऑपरेशन डमी ऑपरेशन हैं। Example: निम्नलिखित कोड दिखाता है कि फ़ाइल को मेमोरी में कैसे निर्यात किया जाए, और सभी निर्भर फ़ाइल जनरेशन को अनदेखा किया जाए।

//create a scene with material
     Scene scene = new Scene();
     scene.getRootNode().createChildNode(new Box()).setMaterial(new LambertMaterial());
     //create a save option and specify the file system, so the dependent file will be written to memory
     var opt = FileFormat.WAVEFRONTOBJ.createSaveOptions();
     var dfs = new DummyFileSystem();
     opt.setFileSystem(dfs);
     //obj's material file name is associated with the obj's file name, so we need a explicit name.
     opt.setFileName("test.obj");
     try (var ms = new MemoryStream())
     {
         scene.save(ms, opt);
     }

कंस्ट्रक्टर

कंस्ट्रक्टरविवरण
DummyFileSystem()

विधियाँ

विधिविवरण
close()फ़ाइल सिस्टम को नष्ट करें और उसके संसाधनों को मुक्त करें।
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)निर्भरताओं को लिखने के लिए एक स्ट्रीम बनाएं।

DummyFileSystem()

public DummyFileSystem()

close()

public void close()

फ़ाइल सिस्टम को नष्ट करें और उसके संसाधनों को मुक्त करें।

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