An open API service indexing awesome lists of open source software.

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

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