Our application takes up a relatively large amount of memory (most of the heap
space we allocate at viewing time is for the purpose of caches.) Our experience
of using memory mapping is that it often, in low memory conditions, causes major
problems. It shouldn't crash the application but I have seen it do so from time
So we would like some way to pass in something that isn't a ByteBuffer.
What would be truly useful is some kind of generic API which has "read this from
this offset", which can then be implemented to be backed by a ByteBuffer, a
RandomAccessFile, or "something else" – the "something else" being our internal
binary reading interface which was designed to overcome this precise problem.