Class MemoryFileSystem

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class MemoryFileSystem
    extends FileSystem
    The MemoryFileSystem will maps the read/write operations to memory.
    • 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MemoryFileSystem

        public MemoryFileSystem()
    • 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. Throw FileNotFoundException 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 class FileSystem
        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 class FileSystem
        Parameters:
        fileName -
        options -