开发者

High-level Java filesystem content manipulation : old style vs. jcr?

开发者 https://www.devze.com 2023-01-17 00:55 出处:网络
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

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 b开发者_如何转开发y JackRabbit ? Put it all into nodes and properties instead of directories. Does it bring advantages ?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消