用于Java7 nio2的任何可用的内存中FileSystem实现? [英] Any available in-memory FileSystem implementations for Java7 nio2?
问题描述
在本质上,Java只提供(在我的JDK中)一个 Win32FileSystem
和一个 ZipFileSystem
。
似乎 ShrinkWrap 有类似的东西,但似乎主要处理ZIP文件系统或任何。
现在我猜,有些人已经将新的nio FileSystem IO整合到自己的项目中了,可以帮我解决这个问题吗?
谢谢
https://github.com/google/jimfs 提供了此功能。我从来没有自己测试过。
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.
这篇关于用于Java7 nio2的任何可用的内存中FileSystem实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!