高级 Java 文件系统内容操作:旧式与 jcr?
选择管理文件系统上的文本/二进制内容的最佳方法是什么?通常,当构建具有大量多媒体二进制文件和存储在文件系统上的其他各种基于文本的内容的 Web 应用程序时,JDK 6 java.io 的级别仍然太低。
- 它将随着 java 7 的改变而改变,正如你可以在这里看到的,这要归功于新的 java .nio.file.* 包
但是直到 java 7 发布并由 IDE 等实现之前,我真的不知道该使用什么,除了 org.apache.commons.io 之外。我用 JackRabbit 尝试了一些样本,但我不确定这对于我在开头提到的目的来说是否是一个好主意。是否可以通过 JackRabbit 管理所有文件系统二进制/文本内容?将其全部放入节点和属性而不是目录中。它带来优势吗?
what is the best way to choose for managing text/binary content on filesystem? Typically when building web applications with a lot of multimedia binaries and other various text based content stored on filesystem, JDK 6 java.io is still too much low level.
- It will change with java 7 as you can see here thanks to new java.nio.file.* package
But until java 7 is out and implemented by IDEs etc., I really don't know what to use for this, except of org.apache.commons.io. I tried few samples with JackRabbit, but I'm not sure if it is a good idea for the purpose I mentioned at the beginning. Is it possible to manage all that filesystem binary/text content by JackRabbit ? Put it all into nodes and properties instead of directories. Does it bring advantages ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
目前还不清楚您在寻找什么,但 Google 的 Guava 库有一个io 软件包,特别是 Files 类充满了用于文件操作的静态方法。
它不是一个内容存储库系统,但可能为您想要做的事情提供足够的功能。
It's not really clear what you're looking for, but Google's Guava libraries have an io package, and in particular, a Files class full of static methods for file manipulation.
It's not a content repository system, but may provide enough functionality for what you're trying to do.