I think this goes a bit to far of the subject, reading float buffers.
No it doesn't go far from the subject as "levelCoordinatesBuffer" is a float buffer and I perform "levelCoordinatesBuffer.put(byteBuffer.asFloatBuffer());". I really used a FileChannel to read a file and to put the content in a FloatBuffer by using an intermediary ByteBuffer.
But as far as I can imagine, you want to get the quicker effect with reading.
Yes, that's what I want.
This is done by specifying a BufferedInputStream to wrap the File. This can be done throughout the RandomAccessFile wrapper or a BufferedInputStream on the usual input.
Sequently, the input reader is increased by powers of 2 by the speed when it fits the environment system bitwise reading, that is, the harddisk or ram bus bandwidth. usually harddisk specific readers can read up to 512 bytes "in logical one pass" and the ram bus can be even bigger. That's why setting up a reader for more than 512 bytes/read is useless on current harddisk drives.
If you want objective reading, use a RandomAccessFile, if you want bytes buffers, you better switch to a common 512 bytes reading loop.
But what I did above worked fine...when the file I want to read isn't remote and isn't in a Java archive.