Java - IntBuffer wrapping
<p>I am reading a integer file using :</p>

<pre><code>int len = (int)(new File(file).length());
FileInputStream fis = new FileInputStream(file);
byte buf[] = new byte[len];
fis.read(buf);
IntBuffer up = ByteBuffer.wrap(buf).order(ByteOrder.LITTLE_ENDIAN).asIntBuffer();
</code></pre>

<p>But, it creates two copies of file in memory, 1) Byte Array copy 2) IntBuffer copy.</p>

<p>Is it possible to use the code in such a way thus it will create only one copy in memory?</p>
