public class MemoryFileSystem extends FileSystem
MemoryFileSystem will maps the read/write operations to memory.| Constructor and Description |
|---|
MemoryFileSystem() |
| Modifier and Type | Method and 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.
|
closepublic java.util.List<java.lang.String> getFileNames()
public byte[] getFileContent(java.lang.String fileName)
throws java.io.FileNotFoundException
FileNotFoundException if the specified file is not existing.fileName - java.io.FileNotFoundExceptionpublic com.aspose.threed.Stream readFile(java.lang.String fileName,
IOConfig options)
throws java.io.IOException
readFile in class FileSystemfileName - options - java.io.IOExceptionpublic com.aspose.threed.Stream writeFile(java.lang.String fileName,
IOConfig options)
writeFile in class FileSystemfileName - options -