• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to read a file that in loaded in memory using the MappedByteBuffer.

 
Pooja Patole
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,
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.

Thanks
Pooja
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!