byte array to Int Array
<p>I am reading a file by using:</p>

<pre><code>int len = (int)(new File(args[0]).length());
    FileInputStream fis =
        new FileInputStream(args[0]);
    byte buf[] = new byte[len];
    fis.read(buf);
</code></pre>

<p>As I found <a href="http://java.sun.com/developer/technicalArticles/Programming/PerfTuning/" rel="nofollow">here</a>. Is it possible to convert <code>byte array buf</code> to an <code>Int Array</code> ? Is converting the <code>Byte Array</code> to <code>Int Array</code> will take significantly more space ?</p>

<p>Edit: my file contains millions of ints like,</p>

<p>100000000 200000000 ..... (written using normal int file wirte). I read it to byte buffer. Now I want to wrap it into IntBuffer array. How to do that ? I dont want to convert each byte to int.</p>
