title: Java InputStream to ByteBuffer
body: <p>I am reading dds textures, but since once built the jar I can't access those textures through <code>url</code> and <code>file</code> and have to use <code>InputStream</code> instead.</p>
  
  <p>So I would need to know how I can obtain a <code>java.​nio.ByteBuffer</code> from an <code>java.io.InputStream</code>.</p>
  
  <p><strong>Ps:</strong> no matter through 3rd part libraries, I just need it working </p>