https://github.com/minecraftforge/roimfs
A Java NIO implementation of a fast ReadOnly InMemory FileSystem
https://github.com/minecraftforge/roimfs
Last synced: about 2 months ago
JSON representation
A Java NIO implementation of a fast ReadOnly InMemory FileSystem
- Host: GitHub
- URL: https://github.com/minecraftforge/roimfs
- Owner: MinecraftForge
- License: lgpl-2.1
- Created: 2025-10-10T03:50:18.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2025-10-14T01:06:34.000Z (6 months ago)
- Last Synced: 2026-02-13T10:26:08.259Z (about 2 months ago)
- Language: Java
- Size: 104 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE-header.txt
Awesome Lists containing this project
README
## ReadOnlyInMemoryFileSystem
This is designed to be a **simple** NIO FileSystem that has very limited feature support.
The main goal is to allow use of the normal [ZipFileSystem][ZipFileSystem] on archives in memory.
In a way that mimics having the file on the default file system. Specifically, this is designed to allow data to be accesed via a URI which is required for
[ZipFileSystemProvider][ZipFileSystemProvider] to cache the ZipFileSystem.
This is also designed to have **zero** dependencies.
As indicated in the name, support for writing files is outside the scope of this project. If you need a generic InMemory FileSystem, I recommend [jimfs][jimfs] or [zerofs][zerofs].
[ZipFileSystem]: https://github.com/openjdk/jdk11u/blob/master/src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipFileSystem.java#L703
[ZipFileSystemProvider]: https://github.com/openjdk/jdk11u/blob/master/src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipFileSystemProvider.java#L93
[jimfs]: https://github.com/google/jimfs
[zerofs]: https://github.com/roastedroot/zerofs