title: How to I convert to Unsigned Integer?
body: <p>I have some data which I'm reading from a Binary File, I see that the data is of unsigned type. How can I read the file in Java to convert it correctly? Right now I'm having to do</p>
  <pre><code> byte[] bdata = new byte[DataLen];
   Integer.reverseBytes(ByteBuffer.wrap(bdata).getInt(0)) &amp; (-1L &gt;&gt;&gt; 32)
  </code></pre>
  <p>to get the data correctly. Is there a easier way to do it ?</p>