Forums Register Login

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

+Pie Number of slices to send: Send
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
Villains always have antidotes. They're funny that way. Here's an antidote disguised as a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 481 times.
Similar Threads
Portability implications for NIO
Parsing huge file without reading into memory
Delete line in file
what is the most optimized way of writing a file
NX: about nio
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:58:44.