---
Product: Aspose.3D
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/3d/java/MemoryFileSystem
---

# MemoryFileSystem

## Overview

`MemoryFileSystem` is a class in Aspose.3D FOSS for Java.
Inherits from: `FileSystem`.

This class provides 8 methods for working with MemoryFileSystem objects in Java programs.
Available methods include: `MemoryFileSystem`, `close`, `createDummyFileSystem`, `createLocalFileSystem`, `createMemoryFileSystem`, `createZipFileSystem`, `readFile`, `writeFile`.
All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package.

## Methods

| Signature | Description |
|-----------|-------------|
| `MemoryFileSystem(files: Map)` | Calls MemoryFileSystem(files) on this MemoryFileSystem instance. |
| `readFile(fileName: String, options: IOConfig)` → `InputStream` | Calls readFile(fileName, options) on this MemoryFileSystem instance. |
| `writeFile(fileName: String, options: IOConfig)` → `OutputStream` | Calls writeFile(fileName, options) on this MemoryFileSystem instance. |
| `close()` | Calls close on this MemoryFileSystem instance. |
| `createLocalFileSystem(directory: String)` → `LocalFileSystem` | Initialize a new FileSystem that only access local directory. |
| `createMemoryFileSystem(files: Map)` → `MemoryFileSystem` | Initialize a new FileSystem from a dictionary of memory streams. |
| `createDummyFileSystem()` → `DummyFileSystem` | Create a dummy file system, read/write operations are dummy operations. |
| `createZipFileSystem(stream: InputStream, baseDir: String)` → `ZipFileSystem` | Create a file system to provide to the read-only access to specified zip file or zip stream. |

## See Also

- [Aspose.3D — Enterprise API Reference](https://reference.aspose.com/3d/)