Is it possible? Basically I have a local binary file represented by:
file:///path/to/myfile.dat
I want to read this file using ByteBuffers, in other words, I believe I need a FileChannel from the given URL to do that.
Any hope?
Yes, just get the path out of the URL and open it with FileChannel.open().
Paths.get(url.toURI()).
file:///path/to/mylocalfile.dat(Obs: I fixed my original URL that had incorrectly two '/' instead of 3)