开发者

How to store randomly accessed files (both on writing and reading) in Jackrabbit JCR implementation?

开发者 https://www.devze.com 2022-12-21 14:13 出处:网络
Is it possible to store randomly accessed files (both on writing and reading)开发者_开发百科 in Jackrabbit JCR implementation, if documentation says that DataStore interface stores data immutable. Wit

Is it possible to store randomly accessed files (both on writing and reading)开发者_开发百科 in Jackrabbit JCR implementation, if documentation says that DataStore interface stores data immutable.


Within the JCR API, random access within a binary is not supported. The only workaround is to use InputStream.seek (but you can only seek forward). Of course you can create a temporary table and use RandomAccessFile on that (or for small binaries edit them in-memory), but you probably already know that.

0

精彩评论

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