Illarion Kovalchuk
Illarion Kovalchuk

Reputation: 5894

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

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.

Upvotes: 0

Views: 173

Answers (1)

Thomas Mueller
Thomas Mueller

Reputation: 50107

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.

Upvotes: 1

Related Questions