How to read a file that in loaded in memory using the MappedByteBuffer.
posted 4 years ago
I loaded a file in the memory using the MemoryByteBuffer in the following manner.
I want to use the data of the file somewhere else.So i was thinking rather that again opening a file there mmight be a way to access it from the buffer.I made this buffer static so that i can access it
elsewhere. But I dont know how to get the file from the buffer in some other class.
Any help would be appreciated.