用于Java7 nio2的任何可用的内存中FileSystem实现? [英] Any available in-memory FileSystem implementations for Java7 nio2?

查看:126
本文介绍了用于Java7 nio2的任何可用的内存中FileSystem实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找内存中的nio2 FileSystem实现,这将允许我更容易地测试我的依赖于IO的代码。



在本质上,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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆