Package com.aspose.threed
Class MemoryFileSystem
- java.lang.Object
-
- com.aspose.threed.FileSystem
-
- com.aspose.threed.MemoryFileSystem
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class MemoryFileSystem extends FileSystem
TheMemoryFileSystem
will maps the read/write operations to memory.
-
-
Constructor Summary
Constructors Constructor Description MemoryFileSystem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getFileContent(java.lang.String fileName)
Returns the raw content of the specified file.java.util.List<java.lang.String>
getFileNames()
File names that in this memory file system.com.aspose.threed.Stream
readFile(java.lang.String fileName, IOConfig options)
Create a stream for reading dependencies.com.aspose.threed.Stream
writeFile(java.lang.String fileName, IOConfig options)
Create a stream for writing dependencies.-
Methods inherited from class com.aspose.threed.FileSystem
close
-
-
-
-
Method Detail
-
getFileNames
public java.util.List<java.lang.String> getFileNames()
File names that in this memory file system.
-
getFileContent
public byte[] getFileContent(java.lang.String fileName) throws java.io.FileNotFoundException
Returns the raw content of the specified file. ThrowFileNotFoundException
if the specified file is not existing.- Parameters:
fileName
-- Throws:
java.io.FileNotFoundException
-
readFile
public com.aspose.threed.Stream readFile(java.lang.String fileName, IOConfig options) throws java.io.IOException
Create a stream for reading dependencies.- Specified by:
readFile
in classFileSystem
- Parameters:
fileName
-options
-- Throws:
java.io.IOException
-
writeFile
public com.aspose.threed.Stream writeFile(java.lang.String fileName, IOConfig options)
Create a stream for writing dependencies.- Specified by:
writeFile
in classFileSystem
- Parameters:
fileName
-options
-
-
-