I was looking for in-memory nio2 FileSystem implementations, that would allow me to more easily test my IO-dependent code.
It seems natively, Java only provides (in my JDK) a Win32FileSystem
and a ZipFileSystem
.
It seems ShrinkWrap has something of the kind, but seems to mainly deal with ZIP File Systems or whatsoever.
I'd guess by the time being, some of you are already incorporating the new nio FileSystem IO in your own projects and could help me with this?
Thanks
https://github.com/google/jimfs provides this functionality. I never tested it myself.
You can try https://github.com/marschall/memoryfilesystem. Should be a perfect fit for your needs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With