高级 Java 文件系统内容操作:旧式与 jcr?

发布于 2024-09-24 20:41:24 字数 472 浏览 2 评论 0原文

选择管理文件系统上的文本/二进制内容的最佳方法是什么?通常,当构建具有大量多媒体二进制文件和存储在文件系统上的其他各种基于文本的内容的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吹泡泡o 2024-10-01 20:41:24

目前还不清楚您在寻找什么,但 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文